readFragment
abstract fun <D : Fragment.Data> readFragment(fragment: Fragment<D>, cacheKey: CacheKey, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, cacheHeaders: CacheHeaders = CacheHeaders.NONE): D
Read a GraphQL fragment from the store. This is a synchronous operation that might block if the underlying cache is doing IO
Return
the fragment data
Parameters
fragment
to be read
cacheKey
CacheKey to be used to find cache record for the fragment
Throws
on cache miss
on other cache read errors