watch
Gets initial response(s) then observes the cache for any changes. fetchPolicy controls how the result is first queried, while refetchPolicy will control the subsequent fetches. Network and cache exceptions are ignored by default, this can be changed by setting fetchThrows for the first fetch and refetchThrows for subsequent fetches (non Apollo exceptions like OutOfMemoryError
are always propagated).
Parameters
whether to throw if an ApolloException happens during the initial fetch. Default: false
whether to throw if an ApolloException happens during a refetch. Default: false
Observes the cache for the given data. Unlike watch, no initial request is executed on the network. Network and cache exceptions are ignored by default, this can be controlled with the retryWhen lambda. The fetch policy set by fetchPolicy will be used.