readFragment
abstract suspend fun <D : Fragment.Data> readFragment( fragment: Fragment<D>, cacheKey: CacheKey, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, cacheHeaders: CacheHeaders = CacheHeaders.NONE): D
Content copied to clipboard
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 other cache read errors