We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5b2e52 commit f73241eCopy full SHA for f73241e
README.md
@@ -1,2 +1,25 @@
1
# graphql
2
-Low-level GraphQL client for Go
+
3
+Low-level GraphQL client for Go.
4
5
+* Simple, familiar API
6
+* Build and execute any kind of GraphQL request
7
8
+```go
9
+ctx := context.Background()
10
+ctx = graphql.NewContext(ctx, "https://machinebox.io/graphql")
11
+r := graphql.NewRequest(`
12
+ query ($key: String!) {
13
+ items (id:$key) {
14
+ field1
15
+ field2
16
+ field3
17
+ }
18
19
+`)
20
+r.Var("key", "value")
21
+var res ResponseStruct
22
+if err := r.Run(ctx, &resp); err != nil {
23
+ log.Fatalln(err)
24
+}
25
+```
0 commit comments