From a4661da1f31da8afb79b0d1d84ceeb77f58d1ddc Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Tue, 4 Apr 2017 00:29:12 +0200 Subject: [PATCH] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c8ee29b..4bbe599 100644 --- a/README.md +++ b/README.md @@ -399,7 +399,7 @@ this.$apollo.quries.tags.skip = true These are the available advanced options you can use: - `update(data) {return ...}` to customize the value that is set in the vue property, for example if the field names don't match. -- `result(ApolloResult)` is a hook called when a result is received (see documentation for [ApolloResult](http://dev.apollodata.com/core/apollo-client-api.html#ApolloQueryResult)). +- `result(ApolloQueryResult)` is a hook called when a result is received (see documentation for [ApolloQueryResult](http://dev.apollodata.com/core/apollo-client-api.html#ApolloQueryResult)). - `error(error)` is a hook called when there are errors, `error` being an Apollo error object with either a `graphQLErrors` property or a `networkError` property. - `loadingKey` will update the component data property you pass as the value. You should initialize this property to `0` in the component `data()` hook. When the query is loading, this property will be incremented by 1 and as soon as it no longer is, the property will be decremented by 1. That way, the property can represent a counter of currently loading queries. - `watchLoading(isLoading, countModifier)` is a hook called when the loading state of the query changes. The `countModifier` parameter is either equal to `1` when the query is now loading, or `-1` when the query is no longer loading.