Package com. apollographql. apollo3
Types
ApolloCall
Link copied to clipboard
abstract class ApolloCall<D : Operation.Data, E : HasMutableExecutionContext<E>>(apolloClient: ApolloClient, operation: Operation<D>) : HasMutableExecutionContext<E>
Content copied to clipboard
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>) : HasExecutionContext
Content copied to clipboard
ApolloMutationCall
Link copied to clipboard
class ApolloMutationCall<D : Mutation.Data>(apolloClient: ApolloClient, mutation: Mutation<D>) : ApolloCall<D, ApolloMutationCall<D>>
Content copied to clipboard
ApolloMutationCall contains everything needed to execute a Mutation with the given ApolloClientApolloMutationCall is mutable.
ApolloQueryCall
Link copied to clipboard
class ApolloQueryCall<D : Query.Data>(apolloClient: ApolloClient, query: Query<D>) : ApolloCall<D, ApolloQueryCall<D>>
Content copied to clipboard
ApolloQueryCall contains everything needed to execute a Query with the given ApolloClientApolloQueryCall is mutable.
ApolloSubscriptionCall
Link copied to clipboard
class ApolloSubscriptionCall<D : Subscription.Data>(apolloClient: ApolloClient, subscription: Subscription<D>) : ApolloCall<D, ApolloSubscriptionCall<D>>
Content copied to clipboard
ApolloSubscriptionCall contains everything needed to execute a Subscription with the given ApolloClientApolloSubscriptionCall is mutable.
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
autoPersistedQueries
Link copied to clipboard
fun ApolloClient.Builder.autoPersistedQueries(httpMethodForHashedQueries: HttpMethod = HttpMethod.Get, httpMethodForDocumentQueries: HttpMethod = HttpMethod.Post, hashByDefault: Boolean = true): ApolloClient.Builder
Content copied to clipboard
Configures the given ApolloClient to try auto persisted queries.
hashedQuery
Link copied to clipboard
withAutoPersistedQueries
Link copied to clipboard
fun ApolloClient.withAutoPersistedQueries(httpMethodForHashedQueries: HttpMethod = HttpMethod.Get, httpMethodForDocumentQueries: HttpMethod = HttpMethod.Post, hashByDefault: Boolean = true): ApolloClient
Content copied to clipboard
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
fun <D : Operation.Data> ApolloRequest<D>.withHashedQuery(hashed: Boolean): ApolloRequest<D>
Content copied to clipboard
withHttpHeader
Link copied to clipboard
fun ApolloClient.withHttpHeader(name: String, value: String): ApolloClient
Content copied to clipboard
withHttpHeaders
Link copied to clipboard
fun ApolloClient.withHttpHeaders(httpHeaders: List<HttpHeader>): ApolloClient
Content copied to clipboard
withHttpMethod
Link copied to clipboard
withSendApqExtensions
Link copied to clipboard
fun ApolloClient.withSendApqExtensions(sendApqExtensions: Boolean): ApolloClient
Content copied to clipboard
withSendDocument
Link copied to clipboard
Properties
autoPersistedQueryInfo
Link copied to clipboard
val <D : Operation.Data> ApolloResponse<D>.autoPersistedQueryInfo: AutoPersistedQueryInfo?
Content copied to clipboard