Uses of Class
graphql.language.Document
-
-
Uses of Document in graphql
Fields in graphql declared as Document Modifier and Type Field Description private DocumentParseAndValidateResult.Builder. documentprivate DocumentParseAndValidateResult. documentMethods in graphql that return Document Modifier and Type Method Description DocumentParseAndValidateResult. getDocument()Methods in graphql with parameters of type Document Modifier and Type Method Description ParseAndValidateResult.BuilderParseAndValidateResult.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 DocumentQueryComplexityCalculator.Builder. documentprivate DocumentQueryComplexityCalculator. documentprivate DocumentQueryTraverser.Builder. documentMethods in graphql.analysis with parameters of type Document Modifier and Type Method Description QueryComplexityCalculator.BuilderQueryComplexityCalculator.Builder. document(Document document)QueryTraverser.BuilderQueryTraverser.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 DocumentExecutionContext. document(package private) DocumentExecutionContextBuilder. documentMethods in graphql.execution that return Document Modifier and Type Method Description DocumentExecutionContext. getDocument()Methods in graphql.execution with parameters of type Document Modifier and Type Method Description ExecutionContextBuilderExecutionContextBuilder. 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 DocumentDocumentAndVariables.Builder. documentprivate DocumentDocumentAndVariables. documentMethods in graphql.execution.instrumentation that return Document Modifier and Type Method Description DocumentDocumentAndVariables. getDocument()Methods in graphql.execution.instrumentation with parameters of type Document Modifier and Type Method Description DocumentAndVariables.BuilderDocumentAndVariables.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 DocumentInstrumentationValidationParameters. documentMethods in graphql.execution.instrumentation.parameters that return Document Modifier and Type Method Description DocumentInstrumentationValidationParameters. 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 DocumentPreparsedDocumentEntry. documentMethods in graphql.execution.preparsed that return Document Modifier and Type Method Description DocumentPreparsedDocumentEntry. 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 DocumentIntrospectionQueryBuilder. buildDocument(IntrospectionQueryBuilder.Options options)This will build an introspection query inDocumentformDocumentIntrospectionResultToSchema. createSchemaDefinition(ExecutionResult introspectionResult)Returns a IDL Document that represents the schema as defined by the introspection execution resultDocumentIntrospectionResultToSchema. 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 DocumentDocument.Builder. build()DocumentDocument. deepCopy()private DocumentAstSignature. dropUnusedQueryDefinitions(Document document, java.lang.String operationName)private DocumentAstSignature. hideLiterals(boolean signatureMode, Document document)DocumentAstSignature. 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 DocumentAstSignature. removeAliases(Document document)DocumentAstSignature. 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 DocumentAstSignature. sortAST(Document document)DocumentDocument. transform(java.util.function.Consumer<Document.Builder> builderConsumer)private DocumentAstSignature. transformDoc(Document document, NodeVisitorStub visitor)DocumentDocument. 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 DocumentAstSignature. dropUnusedQueryDefinitions(Document document, java.lang.String operationName)static java.util.Map<java.lang.String,FragmentDefinition>NodeUtil. getFragmentsByName(Document document)static NodeUtil.GetOperationResultNodeUtil. getOperation(Document document, java.lang.String operationName)private DocumentAstSignature. hideLiterals(boolean signatureMode, Document document)DocumentAstSignature. 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 DocumentAstSignature. removeAliases(Document document)DocumentAstSignature. 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 DocumentAstSignature. sortAST(Document document)private DocumentAstSignature. transformDoc(Document document, NodeVisitorStub visitor)TraversalControlNodeVisitor. visitDocument(Document node, TraverserContext<Node> data)TraversalControlNodeVisitorStub. 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 DocumentExecutableNormalizedOperationToAstCompiler.CompilerResult. documentMethods in graphql.normalized that return Document Modifier and Type Method Description DocumentExecutableNormalizedOperationToAstCompiler.CompilerResult. getDocument()Methods in graphql.normalized with parameters of type Document Modifier and Type Method Description static ExecutableNormalizedOperationExecutableNormalizedOperationFactory. 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 ExecutableNormalizedOperationExecutableNormalizedOperationFactory. 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 ExecutableNormalizedOperationExecutableNormalizedOperationFactory. 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 ExecutableNormalizedOperationExecutableNormalizedOperationFactory. 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 DocumentGraphqlAntlrToLanguage. createDocument(GraphqlParser.DocumentContext ctx)static DocumentParser. parse(ParserEnvironment environment)Parses a string input into a graphql ASTDocumentstatic DocumentParser. parse(java.lang.String input)Parses a string input into a graphql ASTDocumentDocumentParser. parseDocument(ParserEnvironment environment)Parses document text into a graphql ASTDocumentDocumentParser. parseDocument(java.io.Reader reader)Parses reader input into a graphql ASTDocumentDocumentParser. parseDocument(java.io.Reader reader, ParserOptions parserOptions)Deprecated.use {#Parser.parse(ParserEnvironment)} insteadDocumentParser. parseDocument(java.lang.String input)Parses a string input into a graphql ASTDocumentDocumentParser. parseDocument(java.lang.String input, ParserOptions parserOptions)Deprecated.use {#Parser.parse(ParserEnvironment)} insteadDocumentParser. parseDocument(java.lang.String input, java.lang.String sourceName)Deprecated.use {#Parser.parse(ParserEnvironment)} insteadprivate DocumentParser. 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 DocumentDataFetchingEnvironmentImpl.Builder. documentprivate DocumentDataFetchingEnvironmentImpl. documentMethods in graphql.schema that return Document Modifier and Type Method Description DocumentDataFetchingEnvironment. getDocument()DocumentDataFetchingEnvironmentImpl. getDocument()DocumentDelegatingDataFetchingEnvironment. getDocument()Methods in graphql.schema with parameters of type Document Modifier and Type Method Description DataFetchingEnvironmentImpl.BuilderDataFetchingEnvironmentImpl.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) DocumentDiffCtx. newDocprivate DocumentSchemaDiffSet. newSchemaDoc(package private) DocumentDiffCtx. oldDocprivate DocumentSchemaDiffSet. oldSchemaDocMethods in graphql.schema.diff that return Document Modifier and Type Method Description private static DocumentSchemaDiffSet. getDocumentFromIntrospection(java.util.Map<java.lang.String,java.lang.Object> introspectionResult)private static DocumentSchemaDiffSet. getDocumentFromSDLString(java.lang.String sdlString)DocumentSchemaDiffSet. getNewSchemaDefinitionDoc()DocumentSchemaDiffSet. getOldSchemaDefinitionDoc()Methods in graphql.schema.diff with parameters of type Document Modifier and Type Method Description private voidSchemaDiff. 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 TypeDefinitionRegistrySchemaParser. buildRegistry(Document document)special method to build directly a TypeDefinitionRegistry from a Document useful for Introspection => IDL (Document) => TypeDefinitionRegistryjava.lang.StringSchemaPrinter. 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 voidAnonymizer. assertUniqueOperation(Document document) -
Uses of Document in graphql.validation
Fields in graphql.validation declared as Document Modifier and Type Field Description private DocumentValidationContext. documentMethods in graphql.validation that return Document Modifier and Type Method Description DocumentValidationContext. getDocument()Methods in graphql.validation with parameters of type Document Modifier and Type Method Description voidAbstractRule. checkDocument(Document document)private voidRulesVisitor. checkDocument(Document node)voidAbstractRule. documentFinished(Document document)private voidRulesVisitor. 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 voidExecutableDefinitions. 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)
-