Package graphql.execution.preparsed
Class NoOpPreparsedDocumentProvider
java.lang.Object
graphql.execution.preparsed.NoOpPreparsedDocumentProvider
- All Implemented Interfaces:
PreparsedDocumentProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocument
(ExecutionInput executionInput, Function<ExecutionInput, PreparsedDocumentEntry> parseAndValidateFunction) This is called to get a "cached" pre-parsed query and if it's not present, then the "parseAndValidateFunction" can be called to parse and validate the query.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface graphql.execution.preparsed.PreparsedDocumentProvider
getDocumentAsync
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoOpPreparsedDocumentProvider
public NoOpPreparsedDocumentProvider()
-
-
Method Details
-
getDocument
public PreparsedDocumentEntry getDocument(ExecutionInput executionInput, Function<ExecutionInput, PreparsedDocumentEntry> parseAndValidateFunction) Description copied from interface:PreparsedDocumentProvider
This is called to get a "cached" pre-parsed query and if it's not present, then the "parseAndValidateFunction" can be called to parse and validate the query.Note - the "parseAndValidateFunction" MUST be called if you don't have a per parsed version of the query because it not only parses and validates the query, it invokes
Instrumentation
calls as well for parsing and validation. if you don't make a call back on this then these wont happen.- Specified by:
getDocument
in interfacePreparsedDocumentProvider
- Parameters:
executionInput
- TheExecutionInput
containing the queryparseAndValidateFunction
- If the query has not be pre-parsed, this function MUST be called to parse and validate it- Returns:
- an instance of
PreparsedDocumentEntry
-