Skip to content

Commit

Permalink
getting started: separate example mutation/query
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronArinder committed Feb 7, 2021
1 parent 31d339a commit 67e652a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/content/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ We now have a working server, to start it:
go run server.go
```

Open http://localhost:8080 in a browser. Here are some queries to try:
Open http://localhost:8080 in a browser. Here are some queries to try, starting with creating a todo:
```graphql
mutation createTodo {
createTodo(input:{text:"todo", userId:"1"}) {
Expand All @@ -146,7 +146,11 @@ mutation createTodo {
done
}
}
```

And then querying for it:

```graphql
query findTodos {
todos {
text
Expand Down

0 comments on commit 67e652a

Please sign in to comment.