Uses of Class
graphql.language.Document
Packages that use Document
Package
Description
-
Uses of Document in graphql
Modifier and TypeFieldDescriptionprivate DocumentParseAndValidateResult.Builder.documentprivate final DocumentParseAndValidateResult.documentModifier and TypeMethodDescriptionprivate CompletableFuture<ExecutionResult> GraphQL.execute(ExecutionInput executionInput, Document document, GraphQLSchema graphQLSchema, InstrumentationState instrumentationState) private List<ValidationError> GraphQL.validate(ExecutionInput executionInput, Document document, GraphQLSchema graphQLSchema, InstrumentationState instrumentationState) static 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 List<ValidationError> ParseAndValidate.validate(@NotNull GraphQLSchema graphQLSchema, @NotNull Document parsedDocument, @NotNull Locale locale) This can be called to validate a parsed graphql query.static List<ValidationError> ParseAndValidate.validate(@NotNull GraphQLSchema graphQLSchema, @NotNull Document parsedDocument, @NotNull Predicate<Class<?>> rulePredicate) This can be called to validate a parsed graphql query, with the JVM default locale.static List<ValidationError> ParseAndValidate.validate(@NotNull GraphQLSchema graphQLSchema, @NotNull Document parsedDocument, @NotNull Predicate<Class<?>> rulePredicate, @NotNull Locale locale) This can be called to validate a parsed graphql query. -
Uses of Document in graphql.analysis
Fields in graphql.analysis declared as DocumentModifier and TypeFieldDescriptionprivate DocumentQueryComplexityCalculator.Builder.documentprivate final DocumentQueryComplexityCalculator.documentprivate DocumentQueryTraverser.Builder.documentMethods in graphql.analysis with parameters of type DocumentModifier and TypeMethodDescriptiondocument to be used to traverse the whole query.Constructors in graphql.analysis with parameters of type DocumentModifierConstructorDescriptionprivateQueryTraverser(GraphQLSchema schema, Document document, String operation, CoercedVariables coercedVariables) privateQueryTraverser(GraphQLSchema schema, Document document, String operation, RawVariables rawVariables) -
Uses of Document in graphql.execution
Fields in graphql.execution declared as DocumentModifier and TypeFieldDescriptionprivate final DocumentExecutionContext.document(package private) DocumentExecutionContextBuilder.documentMethods in graphql.execution that return DocumentMethods in graphql.execution with parameters of type DocumentModifier and TypeMethodDescriptionExecution.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 DocumentModifier and TypeFieldDescriptionprivate DocumentDocumentAndVariables.Builder.documentprivate final DocumentDocumentAndVariables.documentMethods in graphql.execution.instrumentation that return DocumentMethods in graphql.execution.instrumentation that return types with arguments of type DocumentModifier and TypeMethodDescription@NotNull InstrumentationContext<Document> ChainedInstrumentation.beginParse(InstrumentationExecutionParameters parameters) ChainedInstrumentation.beginParse(InstrumentationExecutionParameters parameters, InstrumentationState state) default @NotNull InstrumentationContext<Document> Instrumentation.beginParse(InstrumentationExecutionParameters parameters) Deprecated.default @Nullable InstrumentationContext<Document> Instrumentation.beginParse(InstrumentationExecutionParameters parameters, InstrumentationState state) This is called just before a query is parsed.NoContextChainedInstrumentation.beginParse(InstrumentationExecutionParameters parameters, InstrumentationState state) @NotNull InstrumentationContext<Document> SimplePerformantInstrumentation.beginParse(InstrumentationExecutionParameters parameters) @Nullable InstrumentationContext<Document> SimplePerformantInstrumentation.beginParse(InstrumentationExecutionParameters parameters, InstrumentationState state) Methods in graphql.execution.instrumentation with parameters of type DocumentModifier and TypeMethodDescriptionConstructors in graphql.execution.instrumentation with parameters of type DocumentModifierConstructorDescriptionprivateDocumentAndVariables(Document document, Map<String, Object> variables) -
Uses of Document in graphql.execution.instrumentation.parameters
Fields in graphql.execution.instrumentation.parameters declared as DocumentModifier and TypeFieldDescriptionprivate final DocumentInstrumentationValidationParameters.documentMethods in graphql.execution.instrumentation.parameters that return DocumentConstructors in graphql.execution.instrumentation.parameters with parameters of type DocumentModifierConstructorDescriptionInstrumentationValidationParameters(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 DocumentModifier and TypeMethodDescriptionTracingInstrumentation.beginParse(InstrumentationExecutionParameters parameters, InstrumentationState rawState) -
Uses of Document in graphql.execution.preparsed
Fields in graphql.execution.preparsed declared as DocumentMethods in graphql.execution.preparsed that return DocumentConstructors in graphql.execution.preparsed with parameters of type DocumentModifierConstructorDescriptionPreparsedDocumentEntry(Document document) PreparsedDocumentEntry(Document document, List<? extends GraphQLError> errors) -
Uses of Document in graphql.introspection
Methods in graphql.introspection that return DocumentModifier and TypeMethodDescriptionstatic DocumentIntrospectionQueryBuilder.buildDocument(IntrospectionQueryBuilder.Options options) This will build an introspection query inDocumentformIntrospectionResultToSchema.createSchemaDefinition(ExecutionResult introspectionResult) Returns a IDL Document that represents the schema as defined by the introspection execution resultIntrospectionResultToSchema.createSchemaDefinition(Map<String, 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 DocumentModifier and TypeMethodDescriptionDocument.Builder.build()Document.deepCopy()private DocumentAstSignature.dropUnusedQueryDefinitions(Document document, String operationName) private DocumentAstSignature.hideLiterals(boolean signatureMode, Document document) AstSignature.privacySafeQuery(Document document, 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 DocumentAstSignature.removeAliases(Document document) AstSignature.signatureQuery(Document document, 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 DocumentDocument.transform(Consumer<Document.Builder> builderConsumer) private DocumentAstSignature.transformDoc(Document document, NodeVisitorStub visitor) Document.withNewChildren(NodeChildrenContainer newChildren) Methods in graphql.language that return types with arguments of type DocumentModifier and TypeMethodDescriptionprivate AstPrinter.NodePrinter<Document> AstPrinter.document()private AstPrinter.NodePrinter<Document> PrettyAstPrinter.document()Methods in graphql.language with parameters of type DocumentModifier and TypeMethodDescriptionprivate DocumentAstSignature.dropUnusedQueryDefinitions(Document document, String operationName) static Map<String, FragmentDefinition> NodeUtil.getFragmentsByName(Document document) static NodeUtil.GetOperationResultNodeUtil.getOperation(Document document, String operationName) private DocumentAstSignature.hideLiterals(boolean signatureMode, Document document) AstSignature.privacySafeQuery(Document document, 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 DocumentAstSignature.removeAliases(Document document) AstSignature.signatureQuery(Document document, 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 Documentprivate DocumentAstSignature.transformDoc(Document document, NodeVisitorStub visitor) NodeVisitor.visitDocument(Document node, TraverserContext<Node> data) NodeVisitorStub.visitDocument(Document node, TraverserContext<Node> context) Constructors in graphql.language with parameters of type Document -
Uses of Document in graphql.normalized
Fields in graphql.normalized declared as DocumentModifier and TypeFieldDescriptionprivate final DocumentExecutableNormalizedOperationToAstCompiler.CompilerResult.documentMethods in graphql.normalized that return DocumentModifier and TypeMethodDescriptionExecutableNormalizedOperationToAstCompiler.CompilerResult.getDocument()Methods in graphql.normalized with parameters of type DocumentModifier and TypeMethodDescriptionExecutableNormalizedOperationFactory.createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, Document document, String operationName, CoercedVariables coercedVariableValues) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.ExecutableNormalizedOperationFactory.createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, String operationName, RawVariables rawVariables) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.ExecutableNormalizedOperationFactory.createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, String operationName, RawVariables rawVariables, GraphQLContext graphQLContext, Locale locale) This will create a runtime representation of the graphql operation that would be executed in a runtime sense.ExecutableNormalizedOperationFactory.createExecutableNormalizedOperationWithRawVariables(GraphQLSchema graphQLSchema, Document document, 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 -
Uses of Document in graphql.parser
Methods in graphql.parser that return DocumentModifier and TypeMethodDescriptionGraphqlAntlrToLanguage.createDocument(GraphqlParser.DocumentContext ctx) static DocumentParser.parse(ParserEnvironment environment) Parses a string input into a graphql ASTDocumentstatic DocumentParses a string input into a graphql ASTDocumentParser.parseDocument(ParserEnvironment environment) Parses document text into a graphql ASTDocumentParser.parseDocument(Reader reader) Parses reader input into a graphql ASTDocumentParser.parseDocument(Reader reader, ParserOptions parserOptions) Deprecated.use {#Parser.parse(ParserEnvironment)} insteadParser.parseDocument(String input) Parses a string input into a graphql ASTDocumentParser.parseDocument(String input, ParserOptions parserOptions) Deprecated.use {#Parser.parse(ParserEnvironment)} insteadParser.parseDocument(String input, String sourceName) Deprecated.use {#Parser.parse(ParserEnvironment)} insteadprivate DocumentParser.parseDocumentImpl(ParserEnvironment environment) Methods in graphql.parser with parameters of type DocumentModifier and TypeMethodDescriptionCommentParser.getCommentOnFirstLineOfDocument(Document node) CommentParser.getCommentsAfterAllDefinitions(Document node) -
Uses of Document in graphql.schema
Fields in graphql.schema declared as DocumentModifier and TypeFieldDescriptionprivate DocumentDataFetchingEnvironmentImpl.Builder.documentprivate final DocumentDataFetchingEnvironmentImpl.documentMethods in graphql.schema that return DocumentModifier and TypeMethodDescriptionDataFetchingEnvironment.getDocument()DataFetchingEnvironmentImpl.getDocument()DelegatingDataFetchingEnvironment.getDocument()Methods in graphql.schema with parameters of type DocumentModifier and TypeMethodDescription -
Uses of Document in graphql.schema.diff
Fields in graphql.schema.diff declared as DocumentModifier and TypeFieldDescription(package private) final DocumentDiffCtx.newDocprivate final DocumentSchemaDiffSet.newSchemaDoc(package private) final DocumentDiffCtx.oldDocprivate final DocumentSchemaDiffSet.oldSchemaDocMethods in graphql.schema.diff that return DocumentModifier and TypeMethodDescriptionprivate static DocumentSchemaDiffSet.getDocumentFromIntrospection(Map<String, Object> introspectionResult) private static DocumentSchemaDiffSet.getDocumentFromSDLString(String sdlString) SchemaDiffSet.getNewSchemaDefinitionDoc()SchemaDiffSet.getOldSchemaDefinitionDoc()Methods in graphql.schema.diff with parameters of type DocumentModifier and TypeMethodDescriptionprivate voidSchemaDiff.diffSchemaImpl(Document oldDoc, Document newDoc, DifferenceReporter reporter) private Optional<SchemaDefinition> SchemaDiff.getSchemaDef(Document document) private <T extends TypeDefinition>
Optional<T> Constructors in graphql.schema.diff with parameters of type DocumentModifierConstructorDescription(package private)DiffCtx(DifferenceReporter reporter, Document oldDoc, Document newDoc) privateSchemaDiffSet(Document oldSchemaDoc, Document newSchemaDoc, boolean supportsEnforcingDirectives) -
Uses of Document in graphql.schema.idl
Methods in graphql.schema.idl with parameters of type DocumentModifier and TypeMethodDescriptionSchemaParser.buildRegistry(Document document) special method to build directly a TypeDefinitionRegistry from a Document useful for Introspection => IDL (Document) => TypeDefinitionRegistryThis 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 DocumentModifier and TypeMethodDescriptionprivate static voidAnonymizer.assertUniqueOperation(Document document) -
Uses of Document in graphql.validation
Fields in graphql.validation declared as DocumentMethods in graphql.validation that return DocumentMethods in graphql.validation with parameters of type DocumentModifier and TypeMethodDescriptionvoidAbstractRule.checkDocument(Document document) private voidRulesVisitor.checkDocument(Document node) voidAbstractRule.documentFinished(Document document) private voidRulesVisitor.documentFinished(Document node) Validator.validateDocument(GraphQLSchema schema, Document document, Predicate<Class<?>> applyRule, Locale locale) Validator.validateDocument(GraphQLSchema schema, Document document, Locale locale) Constructors in graphql.validation with parameters of type DocumentModifierConstructorDescriptionValidationContext(GraphQLSchema schema, Document document, I18n i18n) -
Uses of Document in graphql.validation.rules
Methods in graphql.validation.rules with parameters of type DocumentModifier and TypeMethodDescriptionvoidExecutableDefinitions.checkDocument(Document document) Executable definitions A GraphQL document is only valid for execution if all definitions are either operation or fragment definitions.voidUniqueDirectiveNamesPerLocation.checkDocument(Document document) voidLoneAnonymousOperation.documentFinished(Document document) voidNoUnusedFragments.documentFinished(Document document)
Instrumentation.beginParse(InstrumentationExecutionParameters, InstrumentationState)instead