ApolloStore
ApolloStore exposes a thread-safe api to access a com.apollographql.apollo.cache.normalized.api.NormalizedCache.
Note that most operations are synchronous and might block if the underlying cache is doing IO - calling them from the main thread should be avoided.
Functions
Direct access to the cache. This is a synchronous operation that might block if the underlying cache is doing IO.
Clear all records from this ApolloStore. This is a synchronous operation that might block if the underlying cache is doing IO
Normalize data to a map of Record keyed by Record.key.
Read a GraphQL fragment from the store. This is a synchronous operation that might block if the underlying cache is doing IO
Read GraphQL operation from store. This is a synchronous operation that might block if the underlying cache is doing IO
Remove cache record by the key This is a synchronous operation that might block if the underlying cache is doing IO
Remove a list of cache records This is an optimized version of remove for caches that can batch operations This is a synchronous operation that might block if the underlying cache is doing IO
Rollback operation data optimistic updates. This is a synchronous operation that might block if the underlying cache is doing IO.
Rollback operation data optimistic updates. This is a synchronous operation that might block if the underlying cache is doing IO.
Write a fragment data to the store. This is a synchronous operation that might block if the underlying cache is doing IO
Write an operation data to the store. This is a synchronous operation that might block if the underlying cache is doing IO
Write operation data to the optimistic store. This is a synchronous operation that might block if the underlying cache is doing IO.