writeOperation

abstract suspend fun <D : Operation.Data> writeOperation(operation: Operation<D>, operationData: D, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, cacheHeaders: CacheHeaders = CacheHeaders.NONE, publish: Boolean = true): Set<String>

Write an operation 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

operation

Operation response data of which should be written to the store

operationData

Operation.Data operation response data to be written to the store

publish

whether to publish the changed keys to listeners