docs: fix example mutation name (#614)

On the local schema declared mutations are "changeItem" and "addItem", but the next steps refers to "checkItem".
This commit is contained in:
Óscar
2019-05-16 19:54:32 +02:00
committed by Guillaume Chau
parent c466f9893f
commit a7680f6eef
+2 -2
View File
@@ -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