docs(smart query): improvements

This commit is contained in:
Guillaume Chau
2019-10-19 14:36:18 +02:00
parent 375a8e6bc9
commit 4402c1c2a6
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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:
+1 -1
View File
@@ -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