You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,9 @@ Integrates [apollo](https://www.apollographql.com/) in your [Vue](http://vuejs.o
48
48
-[Special options](#special-options)
49
49
-[Skip all](#skip-all)
50
50
-[Multiple clients](#multiple-clients)
51
-
-[Query Components](#query-components)
51
+
-[Components](#components)
52
+
-[Query Components](#query-components)
53
+
-[Mutation Components](#mutation-components)
52
54
-[Server-Side Rendering](#server-side-rendering)
53
55
-[Migration](#migration)
54
56
-[API Reference](#api-reference)
@@ -1314,18 +1316,18 @@ export default {
1314
1316
1315
1317
Props:
1316
1318
1317
-
-`mutation`
1318
-
-`variables`
1319
-
-`optimisticResponse`
1320
-
-`update`
1321
-
-`refetchQueries`
1322
-
-`tag`
1319
+
-`mutation`: GraphQL query (transformed by `graphql-tag`)
1320
+
-`variables`: Object of GraphQL variables
1321
+
-`optimisticResponse`: See [optimistic UI](https://www.apollographql.com/docs/react/features/optimistic-ui.html)
1322
+
-`update`: See [updating cache after mutation](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-mutation-options-update)
1323
+
-`refetchQueries`: See [refetching queries after mutation](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-mutation-options-refetchQueries)
1324
+
-`tag`: String HTML tag name (default: `div`)
1323
1325
1324
1326
Scoped slot props:
1325
1327
1326
-
-`mutate`
1327
-
-`loading`
1328
-
-`error`
1328
+
-`mutate(options = undefined)`: Function to call the mutation. You can override the mutation options (for example: `mutate({ variables: { foo: 'bar } })`)
1329
+
-`loading`: Boolean indicating that the request is in flight
1330
+
-`error`: Eventual error for the last mutation call
0 commit comments