Uses of Class
graphql.language.Document
-
-
Uses of Document in graphql
Fields in graphql declared as Document Modifier and Type Field Description private Document
ParseAndValidateResult.Builder. document
private Document
ParseAndValidateResult. document
Methods in graphql that return Document Modifier and Type Method Description Document
ParseAndValidateResult. getDocument()
Methods in graphql with parameters of type Document Modifier and Type Method Description ParseAndValidateResult.Builder
ParseAndValidateResult.Builder. document(Document document)
private java.util.concurrent.CompletableFuture<ExecutionResult>
GraphQL. execute(ExecutionInput executionInput, Document document, GraphQLSchema graphQLSchema, InstrumentationState instrumentationState)
private java.util.List<ValidationError>
GraphQL. validate(ExecutionInput executionInput, Document document, GraphQLSchema graphQLSchema, InstrumentationState instrumentationState)
static java.util.List<ValidationError>
ParseAndValidate. validate(@NotNull GraphQLSchema graphQLSchema, @NotNull Document parsedDocument)
This can be called to validate a parsed graphql query, with the JVM default locale.static java.util.List<ValidationError>
ParseAndValidate. validate(@NotNull GraphQLSchema graphQLSchema, @NotNull Document parsedDocument, @NotNull java.util.function.Predicate<java.lang.Class<?>> rulePredicate)
This can be called to validate a parsed graphql query, with the JVM default locale.static java.util.List<ValidationError>
ParseAndValidate. validate(@NotNull GraphQLSchema graphQLSchema, @NotNull Document parsedDocument, @NotNull java.util.function.Predicate<java.lang.Class<?>> rulePredicate, @NotNull java.util.Locale locale)
This can be called to validate a parsed graphql query.static java.util.List<ValidationError>
ParseAndValidate. validate(@NotNull GraphQLSchema graphQLSchema, @NotNull Document parsedDocument, @NotNull java.util.Locale locale)
This can be called to validate a parsed graphql query. -
Uses of Document in graphql.analysis
Fields in graphql.analysis declared as Document Modifier and Type Field Description private Document
QueryComplexityCalculator.Builder. document
private Document
QueryComplexityCalculator. document
private Document
QueryTraverser.Builder. document
Methods in graphql.analysis with parameters of type Document Modifier and Type Method Description QueryComplexityCalculator.Builder
QueryComplexityCalculator.Builder. document(Document document)
QueryTraverser.Builder
QueryTraverser.Builder. document(Document document)
document to be used to traverse the whole query.Constructors in graphql.analysis with parameters of type Document Constructor Description QueryTraverser(GraphQLSchema schema, Document document, java.lang.String operation, CoercedVariables coercedVariables)
QueryTraverser(GraphQLSchema schema, Document document, java.lang.String operation, RawVariables rawVariables)
-
Uses of Document in graphql.execution
Fields in graphql.execution declared as Document Modifier and Type Field Description private Document
ExecutionContext. document
(package private) Document
ExecutionContextBuilder. document
Methods in graphql.execution that return Document Modifier and Type Method Description Document
ExecutionContext. getDocument()
Methods in graphql.execution with parameters of type Document Modifier and Type Method Description ExecutionContextBuilder
ExecutionContextBuilder. document(Document document)
java.util.concurrent.CompletableFuture<ExecutionResult>
Execution. execute(Document document, GraphQLSchema graphQLSchema, ExecutionId executionId, ExecutionInput executionInput, InstrumentationState instrumentationState)
-
Uses of Document in graphql.execution.instrumentation
Fields in graphql.execution.instrumentation declared as Document Modifier and Type Field Description private Document
DocumentAndVariables.Builder. document
private Document
DocumentAndVariables. document
Methods in graphql.execution.instrumentation that return Document Modifier and Type Method Description Document
DocumentAndVariables. getDocument()
Methods in graphql.execution.instrumentation with parameters of type Document Modifier and Type Method Description DocumentAndVariables.Builder
DocumentAndVariables.Builder. document(Document document)
Constructors in graphql.execution.instrumentation with parameters of type Document Constructor Description DocumentAndVariables(Document document, java.util.Map<java.lang.String,java.lang.Object> variables)
-
Uses of Document in graphql.execution.instrumentation.parameters
Fields in graphql.execution.instrumentation.parameters declared as Document Modifier and Type Field Description private Document
InstrumentationValidationParameters. document
Methods in graphql.execution.instrumentation.parameters that return Document Modifier and Type Method Description Document
InstrumentationValidationParameters. getDocument()
Constructors in graphql.execution.instrumentation.parameters with parameters of type Document Constructor Description InstrumentationValidationParameters(ExecutionInput executionInput, Document document, GraphQLSchema schema, InstrumentationState instrumentationState)
-
Uses of Document in graphql.execution.instrumentation.tracing
Methods in graphql.execution.instrumentation.tracing that return types with arguments of type Document Modifier and Type Method Description InstrumentationContext<Document>
TracingInstrumentation. beginParse(InstrumentationExecutionParameters parameters, InstrumentationState rawState)
-
Uses of Document in graphql.execution.preparsed
Fields in graphql.execution.preparsed declared as Document Modifier and Type Field Description private Document
PreparsedDocumentEntry. document
Methods in graphql.execution.preparsed that return Document Modifier and Type Method Description Document
PreparsedDocumentEntry. getDocument()
Constructors in graphql.execution.preparsed with parameters of type Document Constructor Description PreparsedDocumentEntry(Document document)
PreparsedDocumentEntry(Document document, java.util.List<? extends GraphQLError> errors)
-
Uses of Document in graphql.introspection
Methods in graphql.introspection that return Document Modifier and Type Method Description static Document
IntrospectionQueryBuilder. buildDocument(IntrospectionQueryBuilder.Options options)
This will build an introspection query inDocument
formDocument
IntrospectionResultToSchema. createSchemaDefinition(ExecutionResult introspectionResult)
Returns a IDL Document that represents the schema as defined by the introspection execution resultDocument
IntrospectionResultToSchema. createSchemaDefinition(java.util.Map<java.lang.String,java.lang.Object> introspectionResult)
Returns a IDL Document that represents the schema as defined by the introspection result map -
Uses of Document in graphql.language
Methods in graphql.language that return Document Modifier and Type Method Description Document
Document.Builder. build()
Document
Document. deepCopy()
private Document
AstSignature. dropUnusedQueryDefinitions(Document document, java.lang.String operationName)
private Document
AstSignature. hideLiterals(boolean signatureMode, Document document)
Document
AstSignature. privacySafeQuery(Document document, java.lang.String operationName)
This can produce a "privacy safe" AST that some what conforms to the algorithm as outlined here which removes excess operations, removes any field aliases, hides some literal values and sorts the result.private Document
AstSignature. removeAliases(Document document)
Document
AstSignature. signatureQuery(Document document, java.lang.String operationName)
This can produce a "signature" canonical AST that conforms to the algorithm as outlined here which removes excess operations, removes any field aliases, hides literal values and sorts the result into a canonical query.private Document
AstSignature. sortAST(Document document)
Document
Document. transform(java.util.function.Consumer<Document.Builder> builderConsumer)
private Document
AstSignature. transformDoc(Document document, NodeVisitorStub visitor)
Document
Document. withNewChildren(NodeChildrenContainer newChildren)
Methods in graphql.language that return types with arguments of type Document Modifier and Type Method Description private AstPrinter.NodePrinter<Document>
AstPrinter. document()
private AstPrinter.NodePrinter<Document>
PrettyAstPrinter. document()
Methods in graphql.language with parameters of type Document Modifier and Type Method Description private Document
AstSignature. dropUnusedQueryDefinitions(Document document, java.lang.String operationName)
static java.util.Map<java.lang.String,FragmentDefinition>
NodeUtil. getFragmentsByName(Document document)
static NodeUtil.GetOperationResult
NodeUtil. getOperation(Document document, java.lang.String operationName)
private Document
AstSignature. hideLiterals(boolean signatureMode, Document document)
Document
AstSignature. privacySafeQuery(Document document, java.lang.String operationName)
This can produce a "privacy safe" AST that some what conforms to the algorithm as outlined here which removes excess operations, removes any field aliases, hides some literal values and sorts the result.private Document
AstSignature. removeAliases(Document document)
Document
AstSignature. signatureQuery(Document document, java.lang.String operationName)
This can produce a "signature" canonical AST that conforms to the algorithm as outlined here which removes excess operations, removes any field aliases, hides literal values and sorts the result into a canonical query.private Document
AstSignature. sortAST(Document document)
private Document
AstSignature. transformDoc(Document document, NodeVisitorStub visitor)
TraversalControl
NodeVisitor. visitDocument(Document node, TraverserContext<Node> data)
TraversalControl
NodeVisitorStub. visitDocument(Document node, TraverserContext<Node> context)
Constructors in graphql.language with parameters of type Document Constructor Description Builder(Document existing)
-
Uses of Document in graphql.normalized
Fields in graphql.normalized declared as Document Modifier and Type Field Description private Document
ExecutableNormalizedOperationToAstCompiler.CompilerResult. document
Methods in graphql.normalized that return Document Modifier and Type Method Description Document
ExecutableNormalizedOperationToAstCompiler.CompilerResult. getDocument()
Methods in graphql.normalized with parameters of type Document Modifier and Type Method Description static ExecutableNormalizedOperation
ExecutableNormalizedOperationFactory. createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, CoercedVariables coercedVariableValues)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.static ExecutableNormalizedOperation
ExecutableNormalizedOperationFactory. createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, RawVariables rawVariables)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.static ExecutableNormalizedOperation
ExecutableNormalizedOperationFactory. createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, RawVariables rawVariables, GraphQLContext graphQLContext, java.util.Locale locale)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.static ExecutableNormalizedOperation
ExecutableNormalizedOperationFactory. createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, java.lang.String operationName, RawVariables rawVariables, ExecutableNormalizedOperationFactory.Options options)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.Constructors in graphql.normalized with parameters of type Document Constructor Description CompilerResult(Document document, java.util.Map<java.lang.String,java.lang.Object> variables)
-
Uses of Document in graphql.parser
Methods in graphql.parser that return Document Modifier and Type Method Description Document
GraphqlAntlrToLanguage. createDocument(GraphqlParser.DocumentContext ctx)
static Document
Parser. parse(ParserEnvironment environment)
Parses a string input into a graphql ASTDocument
static Document
Parser. parse(java.lang.String input)
Parses a string input into a graphql ASTDocument
Document
Parser. parseDocument(ParserEnvironment environment)
Parses document text into a graphql ASTDocument
Document
Parser. parseDocument(java.io.Reader reader)
Parses reader input into a graphql ASTDocument
Document
Parser. parseDocument(java.io.Reader reader, ParserOptions parserOptions)
Deprecated.use {#Parser.parse(ParserEnvironment)
} insteadDocument
Parser. parseDocument(java.lang.String input)
Parses a string input into a graphql ASTDocument
Document
Parser. parseDocument(java.lang.String input, ParserOptions parserOptions)
Deprecated.use {#Parser.parse(ParserEnvironment)
} insteadDocument
Parser. parseDocument(java.lang.String input, java.lang.String sourceName)
Deprecated.use {#Parser.parse(ParserEnvironment)
} insteadprivate Document
Parser. parseDocumentImpl(ParserEnvironment environment)
Methods in graphql.parser with parameters of type Document Modifier and Type Method Description java.util.Optional<Comment>
CommentParser. getCommentOnFirstLineOfDocument(Document node)
java.util.List<Comment>
CommentParser. getCommentsAfterAllDefinitions(Document node)
-
Uses of Document in graphql.schema
Fields in graphql.schema declared as Document Modifier and Type Field Description private Document
DataFetchingEnvironmentImpl.Builder. document
private Document
DataFetchingEnvironmentImpl. document
Methods in graphql.schema that return Document Modifier and Type Method Description Document
DataFetchingEnvironment. getDocument()
Document
DataFetchingEnvironmentImpl. getDocument()
Document
DelegatingDataFetchingEnvironment. getDocument()
Methods in graphql.schema with parameters of type Document Modifier and Type Method Description DataFetchingEnvironmentImpl.Builder
DataFetchingEnvironmentImpl.Builder. document(Document document)
-
Uses of Document in graphql.schema.diff
Fields in graphql.schema.diff declared as Document Modifier and Type Field Description (package private) Document
DiffCtx. newDoc
private Document
SchemaDiffSet. newSchemaDoc
(package private) Document
DiffCtx. oldDoc
private Document
SchemaDiffSet. oldSchemaDoc
Methods in graphql.schema.diff that return Document Modifier and Type Method Description private static Document
SchemaDiffSet. getDocumentFromIntrospection(java.util.Map<java.lang.String,java.lang.Object> introspectionResult)
private static Document
SchemaDiffSet. getDocumentFromSDLString(java.lang.String sdlString)
Document
SchemaDiffSet. getNewSchemaDefinitionDoc()
Document
SchemaDiffSet. getOldSchemaDefinitionDoc()
Methods in graphql.schema.diff with parameters of type Document Modifier and Type Method Description private void
SchemaDiff. diffSchemaImpl(Document oldDoc, Document newDoc, DifferenceReporter reporter)
private java.util.Optional<SchemaDefinition>
SchemaDiff. getSchemaDef(Document document)
private <T extends TypeDefinition>
java.util.Optional<T>DiffCtx. getType(java.lang.String typeName, java.lang.Class<T> typeDefClass, Document doc)
Constructors in graphql.schema.diff with parameters of type Document Constructor Description DiffCtx(DifferenceReporter reporter, Document oldDoc, Document newDoc)
SchemaDiffSet(Document oldSchemaDoc, Document newSchemaDoc, boolean supportsEnforcingDirectives)
-
Uses of Document in graphql.schema.idl
Methods in graphql.schema.idl with parameters of type Document Modifier and Type Method Description TypeDefinitionRegistry
SchemaParser. buildRegistry(Document document)
special method to build directly a TypeDefinitionRegistry from a Document useful for Introspection => IDL (Document) => TypeDefinitionRegistryjava.lang.String
SchemaPrinter. print(Document schemaIDL)
This can print an in memory GraphQL IDL document back to a logical schema definition. -
Uses of Document in graphql.util
Methods in graphql.util with parameters of type Document Modifier and Type Method Description private static void
Anonymizer. assertUniqueOperation(Document document)
-
Uses of Document in graphql.validation
Fields in graphql.validation declared as Document Modifier and Type Field Description private Document
ValidationContext. document
Methods in graphql.validation that return Document Modifier and Type Method Description Document
ValidationContext. getDocument()
Methods in graphql.validation with parameters of type Document Modifier and Type Method Description void
AbstractRule. checkDocument(Document document)
private void
RulesVisitor. checkDocument(Document node)
void
AbstractRule. documentFinished(Document document)
private void
RulesVisitor. documentFinished(Document node)
java.util.List<ValidationError>
Validator. validateDocument(GraphQLSchema schema, Document document, java.util.function.Predicate<java.lang.Class<?>> applyRule, java.util.Locale locale)
java.util.List<ValidationError>
Validator. validateDocument(GraphQLSchema schema, Document document, java.util.Locale locale)
Constructors in graphql.validation with parameters of type Document Constructor Description ValidationContext(GraphQLSchema schema, Document document, I18n i18n)
-
Uses of Document in graphql.validation.rules
Methods in graphql.validation.rules with parameters of type Document Modifier and Type Method Description void
ExecutableDefinitions. checkDocument(Document document)
Executable definitions A GraphQL document is only valid for execution if all definitions are either operation or fragment definitions.void
UniqueDirectiveNamesPerLocation. checkDocument(Document document)
void
LoneAnonymousOperation. documentFinished(Document document)
void
NoUnusedFragments. documentFinished(Document document)
-