Interface PersistedQueryCacheMiss

All Superinterfaces:
Function<String,PreparsedDocumentEntry>

@PublicApi public interface PersistedQueryCacheMiss extends 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 Type
    Method
    Description
    apply(String queryToBeParsedAndValidated)
    You give back the missing query text and graphql-java will compile and validate it.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      PreparsedDocumentEntry apply(String queryToBeParsedAndValidated)
      You give back the missing query text and graphql-java will compile and validate it.
      Specified by:
      apply in interface Function<String,PreparsedDocumentEntry>
      Parameters:
      queryToBeParsedAndValidated - the query text to be parsed and validated
      Returns:
      a parsed and validated query document ready for caching