Skip to content

Commit

Permalink
fix code formatting in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rose-a committed Apr 22, 2024
1 parent 5f24523 commit c9e61cd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ The Library will try to follow the following standards and documents:
// NuGet package GraphQL.Client.Serializer.Newtonsoft
var graphQLClient = new GraphQLHttpClient(
"https://api.example.com/graphql",
new NewtonsoftJsonSerializer()
);
new NewtonsoftJsonSerializer());
```

> [!NOTE]
Expand Down Expand Up @@ -110,8 +109,7 @@ Using the extension method for anonymously typed responses (namespace `GraphQL.C
```csharp
var graphQLResponse = await graphQLClient.SendQueryAsync(
personAndFilmsRequest,
() => new { person = new PersonType()}
);
() => new { person = new PersonType()});
var personName = graphQLResponse.Data.person.Name;
```

Expand Down Expand Up @@ -190,8 +188,7 @@ GraphQLQuery query = new("""
var graphQLResponse = await graphQLClient.SendQueryAsync<ResponseType>(
query,
"PersonAndFilms",
new { id = "cGVvcGxlOjE=" }
);
new { id = "cGVvcGxlOjE=" });
```

## Useful Links
Expand Down

0 comments on commit c9e61cd

Please sign in to comment.