Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunSaiTeja authored Dec 9, 2021
1 parent 1380449 commit f76d097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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;

Expand Down Expand Up @@ -72,7 +72,7 @@ Ex:
```

Another way of providing inline validation for Primitive data types
```
```csharp
using System.ComponentModel.DataAnnotations;
using Graph.ArgumentValidator;

Expand Down

0 comments on commit f76d097

Please sign in to comment.