Package com.apollographql.apollo3

Types

ApolloClient
Link copied to clipboard
common
class ApolloClient @JvmOverloads() constructor(networkTransport: NetworkTransport, customScalarAdapters: CustomScalarAdapters, subscriptionNetworkTransport: NetworkTransport, interceptors: List<ApolloInterceptor>, executionContext: ExecutionContext, requestedDispatcher: CoroutineDispatcher?, flowDecorators: List<FlowDecorator>) : ExecutionParameters<ApolloClient>
The main entry point for the Apollo runtime.
AutoPersistedQueryInfo
Link copied to clipboard
common
class AutoPersistedQueryInfo(hit: Boolean) : ExecutionContext.Element
Information about auto persisted queries
ClientScope
Link copied to clipboard
common
class ClientScope(coroutineScope: CoroutineScope) : ExecutionContext.Element
FlowDecorator
Link copied to clipboard
common
typealias FlowDecorator = (Flow<ApolloResponse<*>>) -> Flow<ApolloResponse<*>>

Functions

withAutoPersistedQueries
Link copied to clipboard
common
fun ApolloClient.withAutoPersistedQueries(httpMethodForHashedQueries: HttpMethod = HttpMethod.Get, httpMethodForDocumentQueries: HttpMethod = HttpMethod.Post, hashByDefault: Boolean = true): ApolloClient
Configures the given ApolloClient to try auto persisted queries.
withAutoPersistedQueryInfo
Link copied to clipboard
common
fun <D : Operation.Data> ApolloResponse<D>.withAutoPersistedQueryInfo(hit: Boolean): ApolloResponse<D>
withHashedQuery
Link copied to clipboard
common
fun <T : ExecutionParameters<T>> ExecutionParameters<T>.withHashedQuery(hashed: Boolean): T
A shorthand method that sets sendDocument and sendApqExtensions at the same time.

Properties

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