writeFragment

abstract suspend fun <D : Fragment.Data> writeFragment(    fragment: Fragment<D>,     cacheKey: CacheKey,     fragmentData: D,     customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty,     cacheHeaders: CacheHeaders = CacheHeaders.NONE,     publish: Boolean = true): Set<String>

Write a fragment data to the store and optionally publish changes of Record which have changed, that will notify any watcher that depends on these Record to re-fetch. This is a synchronous operation that might block if the underlying cache is doing IO

Return

the changed keys

Parameters

fragment

data to be written to the store

cacheKey

CacheKey to be used as root record key

fragmentData

Fragment.Data to be written to the store

publish

whether to publish the changed keys to listeners