ApolloClient

class ApolloClient : ExecutionOptions, Closeable

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

Types

Link copied to clipboard

A Builder used to create instances of ApolloClient

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val canBeBatched: Boolean?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val httpHeaders: List<HttpHeader>?
Link copied to clipboard
open override val httpMethod: HttpMethod?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val sendApqExtensions: Boolean?
Link copied to clipboard
open override val sendDocument: Boolean?

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun <D : Operation.Data> executeAsFlow(apolloRequest: ApolloRequest<D>): Flow<ApolloResponse<D>>

Low level API to execute the given apolloRequest and return a Flow.

Link copied to clipboard
fun <D : Mutation.Data> mutation(mutation: Mutation<D>): ApolloCall<D>

Creates a new ApolloCall that you can customize and/or execute.

Link copied to clipboard
Link copied to clipboard
fun <D : Query.Data> query(query: Query<D>): ApolloCall<D>

Creates a new ApolloCall that you can customize and/or execute.

Link copied to clipboard

Creates a new ApolloCall that you can customize and/or execute.