Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions text/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ We have a couple options if we want to run this query and get the data back from

```sh
$ curl -X POST -H "Content-Type:application/json" \
> -d '{user(id: "123"){_id, username}}' \
> -d '{"query": "{user(id: \"123\"){_id username}}"}' \`
> http://localhost:3000/graphql
{"data":{"user":{"_id":"123","username":"jeresig"}}}
```
Expand All @@ -240,7 +240,7 @@ What happens when we attempt to query for a user that doesn’t exist? Does it r

```sh
$ curl -X POST -H "Content-Type:application/json" \
> -d '{user(id: "abc"){_id, username}}' \
> -d '{"query": "{user(id: \"123\"){_id username}}"}' \
> http://localhost:3000/graphql
{"data":{"user":null}}
```
Expand Down