Package-level declarations

Types

Link copied to clipboard
@ApolloExperimental
enum CacheOnError : Enum<CacheOnError>

Defines how cached errors are surfaced.

Functions

Link copied to clipboard
fun <T> MutableExecutionOptions<T>.cacheMissesAsException(cacheMissesAsException: Boolean): T

Sets whether missing fields from the cache should be exposed as an exception.

Link copied to clipboard
@ApolloExperimental
fun <T> MutableExecutionOptions<T>.cacheOnError(cacheOnError: CacheOnError): T

Controls how cached errors are surfaced.

Link copied to clipboard
fun <T> MutableExecutionOptions<T>.serverErrorsAsCacheMisses(serverErrorsAsCacheMisses: Boolean): T
Link copied to clipboard
fun <T> MutableExecutionOptions<T>.serverErrorsAsException(serverErrorsAsException: Boolean): T

Sets whether GraphQL errors in the cache should be exposed as an exception.

Link copied to clipboard
fun <T> MutableExecutionOptions<T>.throwOnCacheMiss(throwOnCacheMiss: Boolean): T