Package-level declarations
Types
ApolloStore exposes a thread-safe api to access a com.apollographql.cache.normalized.api.NormalizedCache.
Properties
An interceptor that emits the response from the cache first, and then emits the response(s) from the network.
An interceptor that emits the response from the cache first, and if there was a cache miss, emits the response(s) from the network.
An interceptor that emits the response from the cache only.
True if this response comes from the cache, false if it comes from the network.
An interceptor that emits the response(s) from the network first, and if there was a network error, emits the response from the cache.
An interceptor that emits the response(s) from the network only.
Functions
Add a cache header to be passed to your com.apollographql.cache.normalized.api.NormalizedCache
Sets the initial FetchPolicy This only has effects for queries. Mutations and subscriptions always use FetchPolicy.NetworkOnly
Sets the initial FetchPolicy This only has effects for queries. Mutations and subscriptions always use FetchPolicy.NetworkOnly
Configures an ApolloClient with a normalized cache.
Sets the optimistic updates to write to the cache while a query is pending.
Sets the FetchPolicy used when watching queries and a cache change has been published
Sets the FetchPolicy used when watching queries and a cache change has been published
Gets initial response(s) then observes the cache for any changes.
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.