From 10766e5f31fb2854f25d6c21f1a504ff968c60f3 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Mon, 26 Sep 2022 20:05:39 +0930 Subject: [PATCH] doc: make mutation and variable match todo.graphql Replay the same GraphQL change made in tutorial-todo-gql-node.md for tutorial-todo-gql-paginate.md. --- doc/md/tutorial-todo-gql-paginate.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/md/tutorial-todo-gql-paginate.md b/doc/md/tutorial-todo-gql-paginate.md index 31f6cd9a3f..3afb559bd3 100755 --- a/doc/md/tutorial-todo-gql-paginate.md +++ b/doc/md/tutorial-todo-gql-paginate.md @@ -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 @@ -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 } } } ```