We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a036007 commit 016da22Copy full SHA for 016da22
1 file changed
text/1.md
@@ -229,7 +229,7 @@ We have a couple options if we want to run this query and get the data back from
229
230
```sh
231
$ curl -X POST -H "Content-Type:application/json" \
232
-> -d '{user(id: "123"){_id, username}}' \
+> -d '{"query": "{user(id: \"123\"){_id username}}"}' \`
233
> http://localhost:3000/graphql
234
{"data":{"user":{"_id":"123","username":"jeresig"}}}
235
```
@@ -240,7 +240,7 @@ What happens when we attempt to query for a user that doesn’t exist? Does it r
240
241
242
243
-> -d '{user(id: "abc"){_id, username}}' \
+> -d '{"query": "{user(id: \"123\"){_id username}}"}' \
244
245
{"data":{"user":null}}
246
0 commit comments