Package com. apollographql. apollo3
Types
ApolloClient
Link copied to clipboard
class ApolloClient @JvmOverloads() constructor(networkTransport: NetworkTransport, customScalarAdapters: CustomScalarAdapters, subscriptionNetworkTransport: NetworkTransport, interceptors: List<ApolloInterceptor>, executionContext: ExecutionContext, requestedDispatcher: CoroutineDispatcher?, flowDecorators: List<FlowDecorator>) : ExecutionParameters<ApolloClient>
Content copied to clipboard
AutoPersistedQueryInfo
Link copied to clipboard
ClientScope
Link copied to clipboard
class ClientScope(coroutineScope: CoroutineScope) : ExecutionContext.Element
Content copied to clipboard
FlowDecorator
Link copied to clipboard
typealias FlowDecorator = (Flow<ApolloResponse<*>>) -> Flow<ApolloResponse<*>>
Content copied to clipboard
Functions
withAutoPersistedQueries
Link copied to clipboard
fun ApolloClient.withAutoPersistedQueries(httpMethodForHashedQueries: HttpMethod = HttpMethod.Get, httpMethodForDocumentQueries: HttpMethod = HttpMethod.Post, hashByDefault: Boolean = true): ApolloClient
Content copied to clipboard
Configures the given ApolloClient to try auto persisted queries.
withAutoPersistedQueryInfo
Link copied to clipboard
fun <D : Operation.Data> ApolloResponse<D>.withAutoPersistedQueryInfo(hit: Boolean): ApolloResponse<D>
Content copied to clipboard
withHashedQuery
Link copied to clipboard
Properties
autoPersistedQueryInfo
Link copied to clipboard
val <D : Operation.Data> ApolloResponse<D>.autoPersistedQueryInfo: AutoPersistedQueryInfo?
Content copied to clipboard