removeOperation

suspend fun <D : Operation.Data> ApolloStore.removeOperation(operation: Operation<D>, data: D, cacheHeaders: CacheHeaders = CacheHeaders.NONE, publish: Boolean = false): Set<String>

Removes an operation from the store.

This is a synchronous operation that might block if the underlying cache is doing IO.

Pass publish = true or call ApolloStore.publish with the returned keys to notify any watchers.

Return

the set of field keys that have been removed.

Parameters

operation

the operation of the data to remove.

data

the data to remove.

publish

whether to notify watchers of the changes.