ApolloRequest

An ApolloRequest represents a GraphQL request to execute.

ApolloRequest is immutable and is usually constructed from com.apollographql.apollo.ApolloCall.

You can mutate an ApolloRequest by calling newBuilder:

val newRequest = apolloRequest.newBuilder().addHttpHeader("Authorization", "Bearer $token").build()

See also

com.apollographql.apollo.ApolloCall

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val canBeBatched: Boolean?

Whether the request can be batched. Used by com.apollographql.apollo.network.http.BatchingHttpInterceptor

Link copied to clipboard

Whether to enable Auto Persisted Queries and try to send a hashed query first. Used by com.apollographql.apollo.interceptor.AutoPersistedQueryInterceptor

Link copied to clipboard

The ExecutionContext to use for the request.

Link copied to clipboard
open override val httpHeaders: List<HttpHeader>?

HTTP headers to use for the request. Used by com.apollographql.apollo.api.http.DefaultHttpRequestComposer

Link copied to clipboard
open override val httpMethod: HttpMethod?

The HTTP method to use for the request.

Link copied to clipboard

the GraphQL operation for this request

Link copied to clipboard
val requestUuid: Uuid

a unique id for this request. For queries and mutations, this is only used for debug. For subscriptions, it is used as subscription id when multiplexing several subscription over a WebSocket.

Link copied to clipboard
Link copied to clipboard
open override val sendApqExtensions: Boolean?

Whether to send the Auto Persisted Queries extensions. Used by com.apollographql.apollo.api.http.DefaultHttpRequestComposer

Link copied to clipboard
open override val sendDocument: Boolean?

Functions