From f76d097e6592a43feb85b727637237fd7d8189e2 Mon Sep 17 00:00:00 2001 From: Varun Teja <35555010+VarunSaiTeja@users.noreply.github.com> Date: Thu, 9 Dec 2021 18:01:59 +0530 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b20b5c8..4b1fc63 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Go to StartUp.cs file and inside ConfigureServices make the following changes. ### Step 2 Add argument validator to services by referring to below code -``` +```csharp services .AddGraphQLServer() .AddArgumentValidator(); @@ -39,7 +39,7 @@ services Just add the `Validatable` attribute to all the classes you defined for input. Ex: -``` +```csharp using System.ComponentModel.DataAnnotations; using Graph.ArgumentValidator; @@ -72,7 +72,7 @@ Ex: ``` Another way of providing inline validation for Primitive data types -``` +```csharp using System.ComponentModel.DataAnnotations; using Graph.ArgumentValidator;