readOperation

suspend fun <D : Operation.Data> readOperation(operation: Operation<D>, cacheHeaders: CacheHeaders = CacheHeaders.NONE): ApolloResponse<D>

Reads an operation from the store.

The returned ApolloResponse.data has null values for any missing fields if their type is nullable, propagating up to their parent otherwise. Missing fields have a corresponding Error in ApolloResponse.errors.

Parameters

operation

the operation to read

See also