watch
Gets initial response(s) then observes the cache for any changes.
The cache subscription is established before the initial fetch completes, so any external cache update made after collecting the last initial response will be received.
Note: when using writeToCacheAsynchronously, the cache updates are postponed and behave as external cache updates. They may trigger emission.
fetchPolicy controls how the result is first queried (default: FetchPolicy.CacheFirst), while refetchPolicy will control the subsequent fetches (default: FetchPolicy.CacheOnly).
Note: when manually updating the cache through ApolloStore, ApolloStore.publish must be called for watchers to be notified.
See also
Observes the cache for the given data. Unlike watch, no initial request is executed on the network. The fetch policy set by fetchPolicy will be used.