serverErrorsAsException

fun <T> MutableExecutionOptions<T>.serverErrorsAsException(serverErrorsAsException: Boolean): T

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

When true, if any field is an Error in the cache, the returned response will have a null data and a non-null exception of type com.apollographql.apollo.exception.ApolloGraphQLException.

Set this to false to allow partial responses from the cache, where errors are included in the response's errors.

Default: true