autoPersistedQueries

fun autoPersistedQueries(    httpMethodForHashedQueries: HttpMethod = HttpMethod.Get,     httpMethodForDocumentQueries: HttpMethod = HttpMethod.Post,     enableByDefault: Boolean = true): ApolloClient.Builder

Configures auto persisted queries.

Parameters

httpMethodForHashedQueries

: the HttpMethod to use for the initial hashed query that does not send the actual Graphql document. HttpMethod.Get allows to use caching when available while HttpMethod.Post usually allows bigger document sizes. Mutations are always sent using HttpMethod.Post regardless of this setting. Default: HttpMethod.Get

httpMethodForDocumentQueries

: the HttpMethod to use for the follow-up query that sends the full document if the initial hashed query was not found. Mutations are always sent using HttpMethod.Post regardless of this setting. Default: HttpMethod.Post

enableByDefault

: whether to enable Auto Persisted Queries by default. You can later use ApolloCall.enableAutoPersistedQueries on to enable/disable them on individual calls.