From 4402c1c2a6b698dd539e58408ffde4dd07f63447 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Sat, 19 Oct 2019 14:36:18 +0200 Subject: [PATCH] docs(smart query): improvements --- docs/api/smart-query.md | 1 + docs/guide/apollo/queries.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/smart-query.md b/docs/api/smart-query.md index b1f9dac..3622d5e 100644 --- a/docs/api/smart-query.md +++ b/docs/api/smart-query.md @@ -18,6 +18,7 @@ Each query declared in the `apollo` definition (that is, which doesn't start wit - `deep` is a boolean to use `deep: true` on Vue watchers. - `subscribeToMore`: an object or an array of object which are [subscribeToMore options](../guide/apollo/subscriptions.md#subscribetomore). - `prefetch` is either a boolean or a function to determine if the query should be prefetched. See [Server-Side Rendering](../guide/ssr.md). +- You can also use any other `watchQuery` options (see [Apollo docs](https://www.apollographql.com/docs/react/api/apollo-client.html#ApolloClient.watchQuery)). Example: diff --git a/docs/guide/apollo/queries.md b/docs/guide/apollo/queries.md index 39dd6f7..764dd0f 100644 --- a/docs/guide/apollo/queries.md +++ b/docs/guide/apollo/queries.md @@ -116,7 +116,7 @@ In this example, we rename the `hello` field to `world` so that vue-apollo can a ## Query with parameters -You can add variables (read parameters) to your `gql` query by declaring `query` and `variables` in an object: +You can add variables (and other parameters) to your `gql` query by declaring `query` and `variables` in an object instead of just the GraphQL query: ```js // Apollo-specific options