Skip to content

Commit

Permalink
doc: make mutation and variable match todo.graphql (#2960)
Browse files Browse the repository at this point in the history
Replay the same GraphQL change made in tutorial-todo-gql-node.md for
tutorial-todo-gql-paginate.md.
  • Loading branch information
kortschak committed Sep 26, 2022
1 parent 16f9782 commit 7ad7df2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/md/tutorial-todo-gql-paginate.md
Expand Up @@ -158,8 +158,8 @@ Now, we're ready to test our new GraphQL resolvers. Let's start with creating a
query multiple times (changing variables is optional):

```graphql
mutation CreateTodo($todo: TodoInput!) {
createTodo(todo: $todo) {
mutation CreateTodo($input: CreateTodoInput!) {
createTodo(input: $input) {
id
text
createdAt
Expand All @@ -170,7 +170,7 @@ mutation CreateTodo($todo: TodoInput!) {
}
}

# Query Variables: { "todo": { "text": "Create GraphQL Example", "status": "IN_PROGRESS", "priority": 1 } }
# Query Variables: { "input": { "text": "Create GraphQL Example", "status": "IN_PROGRESS", "priority": 1 } }
# Output: { "data": { "createTodo": { "id": "2", "text": "Create GraphQL Example", "createdAt": "2021-03-10T15:02:18+02:00", "priority": 1, "parent": null } } }
```

Expand Down

0 comments on commit 7ad7df2

Please sign in to comment.