Package com.apollographql.apollo3.cache.normalized
Types
ApolloStore exposes a thread-safe api to access a com.apollographql.apollo3.cache.normalized.api.NormalizedCache.
Functions
Gets the result from the cache first and always fetch from the network. Use this to get an early cached result while also updating the network values.
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
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.
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).