Package-level declarations

Types

Link copied to clipboard
class ApolloCall<D : Operation.Data> : MutableExecutionOptions<ApolloCall<D>>

An ApolloCall is a thin class that builds a ApolloRequest and calls ApolloClient.execute() with it. ApolloCall is mutable and designed to allow chaining calls.

Link copied to clipboard
class ApolloClient : ExecutionOptions, Closeable

The main entry point for the Apollo runtime. An ApolloClient is responsible for executing queries, mutations and subscriptions

Link copied to clipboard
class AutoPersistedQueryInfo(val hit: Boolean) : ExecutionContext.Element

Information about auto persisted queries

Link copied to clipboard
class ConcurrencyInfo(val dispatcher: CoroutineDispatcher, val coroutineScope: CoroutineScope) : ExecutionContext.Element

Properties

Link copied to clipboard
val <D : Operation.Data> ApolloResponse<D>.autoPersistedQueryInfo: AutoPersistedQueryInfo?
Link copied to clipboard
val <D : Operation.Data> ApolloRequest<D>.conflateFetchPolicyInterceptorResponses: Boolean

Functions

Link copied to clipboard
@ApolloDeprecatedSince(version = ApolloDeprecatedSince.Version.v4_0_0)
fun <T> MutableExecutionOptions<T>.conflateFetchPolicyInterceptorResponses(conflateResponses: Boolean): T

When conflateResponses is true, the fetch policy interceptors emit a single response and ignores the first cache or network error if a successful response is ultimately fetched. If no successful response can be emitted, a com.apollographql.apollo3.exception.ApolloCompositeException error response is emitted.