writeOptimisticUpdates
abstract suspend fun <D : Operation.Data> writeOptimisticUpdates(operation: Operation<D>, operationData: D, mutationId: Uuid, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, publish: Boolean = true): Set<String>
Write operation data to the optimistic 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
mutationId
mutation unique identifier