Interface PersistedQueryCacheMiss
- All Superinterfaces:
Function<String,
PreparsedDocumentEntry>
The call back when a valid persisted query is not in cache and it needs to be compiled and validated
by the graphql engine. If you get a cache miss in your
PersistedQueryCache
implementation
then you are required to call back on the provided instance of this interface-
Method Summary
Modifier and TypeMethodDescriptionYou give back the missing query text and graphql-java will compile and validate it.
-
Method Details
-
apply
You give back the missing query text and graphql-java will compile and validate it.- Specified by:
apply
in interfaceFunction<String,
PreparsedDocumentEntry> - Parameters:
queryToBeParsedAndValidated
- the query text to be parsed and validated- Returns:
- a parsed and validated query document ready for caching
-