Class ApolloPersistedQuerySupport

java.lang.Object
graphql.execution.preparsed.persisted.PersistedQuerySupport
graphql.execution.preparsed.persisted.ApolloPersistedQuerySupport
All Implemented Interfaces:
PreparsedDocumentProvider

@PublicApi public class ApolloPersistedQuerySupport extends PersistedQuerySupport
This persisted query support class supports the Apollo scheme where the persisted query id is in ExecutionInput.getExtensions().

You need to provide a PersistedQueryCache cache implementation as the backing cache.

See Apollo Persisted Queries

The Apollo client sends a hash of the persisted query in the input extensions in the following form

    {
     "extensions":{
      "persistedQuery":{
       "version":1,
       "sha256Hash":"fcf31818e50ac3e818ca4bdbc433d6ab73176f0b9d5f9d5ad17e200cdab6fba4"
     }
   }
 }
See Also: