Skip to content

Commit c9ffb8f

Browse files
author
Guillaume Chau
committed
Merge branch 'master' of github.com:Akryum/vue-apollo
2 parents 8bd5d8d + 131a882 commit c9ffb8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api/smart-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Each query declared in the `apollo` definition (that is, which doesn't start wit
88
- `variables`: Object or reactive function that returns an object. Each key will be mapped with a `'$'` in the GraphQL document, for example `foo` will become `$foo`.
99
- `throttle`: throttle variables updates (in ms).
1010
- `debounce`: debounce variables updates (in ms).
11-
- `pollInterval`: auto update using polling (which means refetching every `x` ms).
11+
- `pollInterval`: auto update using polling (which means refetching every `x` ms). Default: `undefined`, `0` - stop polling.
1212
- `update(data) {return ...}` to customize the value that is set in the vue property, for example if the field names don't match.
1313
- `result(ApolloQueryResult, key)` is a hook called when a result is received (see documentation for [ApolloQueryResult](https://github.com/apollographql/apollo-client/blob/master/packages/apollo-client/src/core/types.ts)). `key` is the query key in the `apollo` option.
1414
- `error(error)` is a hook called when there are errors. `error` is an Apollo error object with either a `graphQLErrors` property or a `networkError` property.

docs/guide/apollo/subscriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Vue.use(VueApollo)
6161

6262
## Subscribe To More
6363

64-
If you need to update a query result from a subscription, the best way is using the `subscribeToMore` query method. It will create [Smart Subscriptions](../../api/smart-subscription.md) that are linked to the query. Just add a `subscribeToMore` to your query:
64+
If you need to update a smart query result from a subscription, the best way is using the `subscribeToMore` smart query method. It will create [Smart Subscriptions](../../api/smart-subscription.md) that are linked to the smart query. Just add a `subscribeToMore` to your smart query:
6565

6666
```js
6767
apollo: {

0 commit comments

Comments
 (0)