sendDocument

open override fun sendDocument(sendDocument: Boolean?): ApolloClient.Builder

Whether to send the GraphQL Document.

This is the low level API used by com.apollographql.apollo.api.http.DefaultHttpRequestComposer to determine whether to send the "query" GraphQL document.

Set sendDocument to false if your server supports persisted queries and can execute an operation base on an id instead.

To configure APQs in general, including retry behaviour, use autoPersistedQueries and enableAutoPersistedQueries.

See also


open override var sendDocument: Boolean?