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
Somewhere along the line, the official Apollo docs
have updated their docs such that most
of the links in vue-apollo's docs break. Hence, all links
have been updated so that they redirect somewhere.
Note that unfortunately direct targets for some items
(notably props/options) don't exist, so where necessary,
a "best alternative" was chosen
Copy file name to clipboardExpand all lines: packages/docs/src/api/apollo-mutation.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,12 @@ Example:
28
28
29
29
-`mutation`: GraphQL query (transformed by `graphql-tag`) or a function that receives the `gql` tag as argument and should return the transformed query
30
30
-`variables`: Object of GraphQL variables
31
-
-`optimisticResponse`: See [optimistic UI](https://www.apollographql.com/docs/react/features/optimistic-ui.html)
32
-
-`update`: See [updating cache after mutation](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-mutation-options-update)
33
-
-`refetchQueries`: See [refetching queries after mutation](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-mutation-options-refetchQueries)
31
+
-`optimisticResponse`: See [optimistic UI](https://www.apollographql.com/docs/react/performance/optimistic-ui/)
32
+
-`update`: See [updating cache after mutation](https://www.apollographql.com/docs/react/data/mutations/#options)
33
+
-`refetchQueries`: See [refetching queries after mutation](https://www.apollographql.com/docs/react/data/mutations/#options)
34
34
-`clientId`: id of the Apollo Client used by the query (defined in ApolloProvider `clients` option)
35
35
-`tag`: String HTML tag name (default: `div`); if `undefined`, the component will be renderless (the content won't be wrapped in a tag)
36
+
-`context`: See [apollo context](https://www.apollographql.com/docs/react/data/mutations/#options)
Copy file name to clipboardExpand all lines: packages/docs/src/api/apollo-query.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,10 @@ To enable support of `gql` string tag in Vue templates, see the necessary setup
35
35
36
36
-`query`: GraphQL query (transformed by `graphql-tag`) or a function that receives the `gql` tag as argument and should return the transformed query
37
37
-`variables`: Object of GraphQL variables
38
-
-`fetchPolicy`: See [apollo fetchPolicy](https://www.apollographql.com/docs/react/basics/queries.html#graphql-config-options-fetchPolicy)
39
-
-`pollInterval`: See [apollo pollInterval](https://www.apollographql.com/docs/react/basics/queries.html#graphql-config-options-pollInterval)
40
-
-`notifyOnNetworkStatusChange`: See [apollo notifyOnNetworkStatusChange](https://www.apollographql.com/docs/react/basics/queries.html#graphql-config-options-notifyOnNetworkStatusChange)
41
-
-`context`: See [apollo context](https://www.apollographql.com/docs/react/basics/queries.html#graphql-config-options-context)
38
+
-`fetchPolicy`: See [apollo fetchPolicy](https://www.apollographql.com/docs/react/data/queries/#options)
39
+
-`pollInterval`: See [apollo pollInterval](https://www.apollographql.com/docs/react/data/queries/#options)
40
+
-`notifyOnNetworkStatusChange`: See [apollo notifyOnNetworkStatusChange](https://www.apollographql.com/docs/react/data/queries/#options)
41
+
-`context`: See [apollo context](https://www.apollographql.com/docs/react/data/queries/#options)
42
42
-`update`: Function to transform the result `data`, useful for picking a specific part of the response. Example: `:update="data => data.user.messages"`
43
43
-`skip`: Boolean disabling query fetching
44
44
-`clientId`: id of the Apollo Client used by the query (defined in ApolloProvider `clients` option)
@@ -56,7 +56,7 @@ To enable support of `gql` string tag in Vue templates, see the necessary setup
56
56
-`result.fullData`: Raw data returned by the query (not transformed by the `update` prop)
57
57
-`result.loading`: Boolean indicating that a request is in flight (you may need to set `notifyOnNetworkStatusChange` prop for it to change)
58
58
-`result.error`: Eventual error for the current result
59
-
-`result.networkStatus`: See [apollo networkStatus](https://www.apollographql.com/docs/react/basics/queries.html#graphql-query-data-networkStatus)
59
+
-`result.networkStatus`: See [apollo networkStatus](https://www.apollographql.com/docs/react/data/queries/#result)
60
60
-`query`: Smart Query associated with the component. It's useful to do some operations like `query.refetch()` or `query.fetchMore()`.
Copy file name to clipboardExpand all lines: packages/docs/src/guide/apollo/mutations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Mutations are queries that change your data state on your apollo server.
4
4
5
5
Use `this.$apollo.mutate()` to send a GraphQL mutation.
6
6
7
-
For more info, visit the [apollo doc](https://www.apollographql.com/docs/react/api/apollo-client.html#ApolloClient.mutate). There is a mutation-focused [example app](https://github.com/Akryum/vue-apollo-todos) you can look at.
7
+
For more info, visit the [apollo doc](https://www.apollographql.com/docs/react/api/apollo-client/#ApolloClient.mutate). There is a mutation-focused [example app](https://github.com/Akryum/vue-apollo-todos) you can look at.
8
8
9
9
::: warning
10
10
You shouldn't send the `__typename` fields in the variables, so it is not recommended to send an Apollo result object directly.
0 commit comments