From a7680f6eef9455ff82094a9e9ff8d46ee7768aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar?= Date: Thu, 16 May 2019 19:54:32 +0200 Subject: [PATCH] docs: fix example mutation name (#614) On the local schema declared mutations are "changeItem" and "addItem", but the next steps refers to "checkItem". --- docs/guide/local-state.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/local-state.md b/docs/guide/local-state.md index b1df078..0e46be2 100644 --- a/docs/guide/local-state.md +++ b/docs/guide/local-state.md @@ -194,13 +194,13 @@ export const typeDefs = gql` } type Mutation { - changeItem(id: ID!): Boolean + checkItem(id: ID!): Boolean addItem(text: String!): Item } `; ``` -The `changeItem` mutation will set the Boolean `done` property of the certain item to the opposite. Let's create it using `gql`: +The `checkItem` mutation will set the Boolean `done` property of the certain item to the opposite. Let's create it using `gql`: ```js // App.vue