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
Types
Properties
Whether the request can be batched. Used by com.apollographql.apollo.network.http.BatchingHttpInterceptor
Whether to enable Auto Persisted Queries and try to send a hashed query first. Used by com.apollographql.apollo.interceptor.AutoPersistedQueryInterceptor
The ExecutionContext to use for the request.
HTTP headers to use for the request. Used by com.apollographql.apollo.api.http.DefaultHttpRequestComposer
The HTTP method to use for the request.
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.
Whether to send the Auto Persisted Queries extensions. Used by com.apollographql.apollo.api.http.DefaultHttpRequestComposer
Whether to send the document. Used by com.apollographql.apollo.api.http.DefaultHttpRequestComposer