readFragment
abstract suspend fun <D : Fragment.Data> readFragment(fragment: Fragment<D>, cacheKey: CacheKey, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, cacheHeaders: CacheHeaders = CacheHeaders.NONE): CacheManager.ReadResult<D>
Reads a fragment from the store.
Return
the fragment data with optional headers from the NormalizedCache
Parameters
fragment
the fragment to read
cacheKey
the root where to read the fragment data from
Throws
CacheMissException
on cache miss
ApolloException
on other cache read errors