Skip to content

Commit 5d3b4a0

Browse files
authored
Merge pull request #245 from Eilon/patch-1
Readme updates for formatting and samples
2 parents 46073f0 + a9c7a34 commit 5d3b4a0

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ A GraphQL Client for .NET Standard over HTTP.
66

77
## Specification:
88
The Library will try to follow the following standards and documents:
9-
[GraphQL Specification](https://facebook.github.io/graphql/June2018)
10-
[GraphQL HomePage](http://graphql.org/learn)
9+
10+
* [GraphQL Specification](https://spec.graphql.org/June2018/)
11+
* [GraphQL HomePage](https://graphql.org/learn)
1112

1213
## Usage:
1314

15+
### Create a GraphQLHttpClient
16+
17+
```csharp
18+
// To use NewtonsoftJsonSerializer, add a reference to NuGet package GraphQL.Client.Serializer.Newtonsoft
19+
var graphQLClient = new GraphQLHttpClient("https://api.example.com/graphql", new NewtonsoftJsonSerializer());
20+
```
21+
1422
### Create a GraphQLRequest:
1523
#### Simple Request:
1624
```csharp
@@ -124,9 +132,10 @@ subscription.Dispose();
124132
```
125133

126134
## Useful Links:
127-
[StarWars Example Server (GitHub)](https://github.com/graphql/swapi-graphql)
128-
[StarWars Example Server (EndPoint)](https://swapi.apis.guru/)
129135

130-
[GitHub GraphQL API Docs](https://developer.github.com/v4/guides/forming-calls/)
131-
[GitHub GraphQL Explorer](https://developer.github.com/v4/explorer/)
132-
[GitHub GraphQL Endpoint](https://api.github.com/graphql)
136+
* [StarWars Example Server (GitHub)](https://github.com/graphql/swapi-graphql)
137+
* [StarWars Example Server (EndPoint)](https://swapi.apis.guru/)
138+
139+
* [GitHub GraphQL API Docs](https://developer.github.com/v4/guides/forming-calls/)
140+
* [GitHub GraphQL Explorer](https://developer.github.com/v4/explorer/)
141+
* [GitHub GraphQL Endpoint](https://api.github.com/graphql)

0 commit comments

Comments
 (0)