Uses of Class
graphql.schema.GraphQLSchema
-
-
Uses of GraphQLSchema in graphql
Fields in graphql declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
GraphQL.Builder. graphQLSchema
private GraphQLSchema
GraphQL. graphQLSchema
private GraphQLSchema
TypeResolutionEnvironment. schema
Methods in graphql that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
GraphQL. getGraphQLSchema()
GraphQLSchema
TypeResolutionEnvironment. getSchema()
Methods in graphql with parameters of type GraphQLSchema Modifier and Type Method Description private java.util.concurrent.CompletableFuture<ExecutionResult>
GraphQL. execute(ExecutionInput executionInput, Document document, GraphQLSchema graphQLSchema, InstrumentationState instrumentationState)
static GraphQL.Builder
GraphQL. newGraphQL(GraphQLSchema graphQLSchema)
Helps you build a GraphQL object ready to execute queriesprivate ParseAndValidateResult
GraphQL. parse(ExecutionInput executionInput, GraphQLSchema graphQLSchema, InstrumentationState instrumentationState)
private PreparsedDocumentEntry
GraphQL. parseAndValidate(java.util.concurrent.atomic.AtomicReference<ExecutionInput> executionInputRef, GraphQLSchema graphQLSchema, InstrumentationState instrumentationState)
static ParseAndValidateResult
ParseAndValidate. parseAndValidate(@NotNull GraphQLSchema graphQLSchema, @NotNull ExecutionInput executionInput)
This can be called to parse and validate a graphql query against a schema, which is useful if you want to know if it would be acceptable for execution.private java.util.concurrent.CompletableFuture<ExecutionResult>
GraphQL. parseValidateAndExecute(ExecutionInput executionInput, GraphQLSchema graphQLSchema, InstrumentationState instrumentationState)
GraphQL.Builder
GraphQL.Builder. schema(GraphQLSchema graphQLSchema)
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.Constructors in graphql with parameters of type GraphQLSchema Constructor Description Builder(GraphQLSchema graphQLSchema)
-
Uses of GraphQLSchema in graphql.analysis
Fields in graphql.analysis declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
NodeVisitorWithTypeTracking. schema
private GraphQLSchema
QueryComplexityCalculator.Builder. schema
private GraphQLSchema
QueryComplexityCalculator. schema
private GraphQLSchema
QueryTransformer.Builder. schema
private GraphQLSchema
QueryTransformer. schema
private GraphQLSchema
QueryTraverser.Builder. schema
private GraphQLSchema
QueryTraverser. schema
private GraphQLSchema
QueryVisitorFieldArgumentEnvironmentImpl. schema
private GraphQLSchema
QueryVisitorFieldArgumentValueEnvironmentImpl. schema
private GraphQLSchema
QueryVisitorFieldEnvironmentImpl. schema
private GraphQLSchema
QueryVisitorFragmentDefinitionEnvironmentImpl. schema
private GraphQLSchema
QueryVisitorFragmentSpreadEnvironmentImpl. schema
private GraphQLSchema
QueryVisitorInlineFragmentEnvironmentImpl. schema
Methods in graphql.analysis that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
QueryVisitorFieldArgumentEnvironment. getSchema()
GraphQLSchema
QueryVisitorFieldArgumentEnvironmentImpl. getSchema()
GraphQLSchema
QueryVisitorFieldArgumentValueEnvironment. getSchema()
GraphQLSchema
QueryVisitorFieldArgumentValueEnvironmentImpl. getSchema()
GraphQLSchema
QueryVisitorFieldEnvironment. getSchema()
GraphQLSchema
QueryVisitorFieldEnvironmentImpl. getSchema()
GraphQLSchema
QueryVisitorFragmentDefinitionEnvironment. getSchema()
GraphQLSchema
QueryVisitorFragmentDefinitionEnvironmentImpl. getSchema()
GraphQLSchema
QueryVisitorFragmentSpreadEnvironment. getSchema()
GraphQLSchema
QueryVisitorFragmentSpreadEnvironmentImpl. getSchema()
GraphQLSchema
QueryVisitorInlineFragmentEnvironment. getSchema()
GraphQLSchema
QueryVisitorInlineFragmentEnvironmentImpl. getSchema()
Methods in graphql.analysis with parameters of type GraphQLSchema Modifier and Type Method Description QueryComplexityCalculator.Builder
QueryComplexityCalculator.Builder. schema(GraphQLSchema graphQLSchema)
QueryTransformer.Builder
QueryTransformer.Builder. schema(GraphQLSchema schema)
The schema used to identify the types of the query.QueryTraverser.Builder
QueryTraverser.Builder. schema(GraphQLSchema schema)
The schema used to identify the types of the query.Constructors in graphql.analysis with parameters of type GraphQLSchema Constructor Description NodeVisitorWithTypeTracking(QueryVisitor preOrderCallback, QueryVisitor postOrderCallback, java.util.Map<java.lang.String,java.lang.Object> variables, GraphQLSchema schema, java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName)
QueryTransformer(GraphQLSchema schema, Node root, GraphQLCompositeType rootParentType, java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName, java.util.Map<java.lang.String,java.lang.Object> variables)
QueryTraverser(GraphQLSchema schema, Document document, java.lang.String operation, CoercedVariables coercedVariables)
QueryTraverser(GraphQLSchema schema, Document document, java.lang.String operation, RawVariables rawVariables)
QueryTraverser(GraphQLSchema schema, Node root, GraphQLCompositeType rootParentType, java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName, CoercedVariables coercedVariables)
QueryVisitorFieldArgumentEnvironmentImpl(GraphQLFieldDefinition fieldDefinition, Argument argument, GraphQLArgument graphQLArgument, java.lang.Object argumentValue, java.util.Map<java.lang.String,java.lang.Object> variables, QueryVisitorFieldEnvironment parentEnvironment, TraverserContext<Node> traverserContext, GraphQLSchema schema)
QueryVisitorFieldArgumentValueEnvironmentImpl(GraphQLSchema schema, GraphQLFieldDefinition fieldDefinition, GraphQLArgument graphQLArgument, QueryVisitorFieldArgumentInputValue argumentInputValue, TraverserContext<Node> traverserContext, java.util.Map<java.lang.String,java.lang.Object> variables)
QueryVisitorFieldEnvironmentImpl(boolean typeNameIntrospectionField, Field field, GraphQLFieldDefinition fieldDefinition, GraphQLOutputType parentType, GraphQLFieldsContainer unmodifiedParentType, QueryVisitorFieldEnvironment parentEnvironment, java.util.Map<java.lang.String,java.lang.Object> arguments, SelectionSetContainer selectionSetContainer, TraverserContext<Node> traverserContext, GraphQLSchema schema)
QueryVisitorFragmentDefinitionEnvironmentImpl(FragmentDefinition fragmentDefinition, TraverserContext<Node> traverserContext, GraphQLSchema schema)
QueryVisitorFragmentSpreadEnvironmentImpl(FragmentSpread fragmentSpread, FragmentDefinition fragmentDefinition, TraverserContext<Node> traverserContext, GraphQLSchema schema)
QueryVisitorInlineFragmentEnvironmentImpl(InlineFragment inlineFragment, TraverserContext<Node> traverserContext, GraphQLSchema schema)
-
Uses of GraphQLSchema in graphql.execution
Fields in graphql.execution declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
ExecutionContext. graphQLSchema
(package private) GraphQLSchema
ExecutionContextBuilder. graphQLSchema
private GraphQLSchema
FieldCollectorParameters.Builder. graphQLSchema
private GraphQLSchema
FieldCollectorParameters. graphQLSchema
private GraphQLSchema
TypeResolutionParameters.Builder. schema
private GraphQLSchema
TypeResolutionParameters. schema
Methods in graphql.execution that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
ExecutionContext. getGraphQLSchema()
GraphQLSchema
FieldCollectorParameters. getGraphQLSchema()
GraphQLSchema
TypeResolutionParameters. getSchema()
Methods in graphql.execution with parameters of type GraphQLSchema Modifier and Type Method Description static CoercedVariables
ValuesResolver. coerceVariableValues(GraphQLSchema schema, java.util.List<VariableDefinition> variableDefinitions, RawVariables rawVariables, GraphQLContext graphqlContext, java.util.Locale locale)
This method coerces the "raw" variables values provided to the engine.java.util.concurrent.CompletableFuture<ExecutionResult>
Execution. execute(Document document, GraphQLSchema graphQLSchema, ExecutionId executionId, ExecutionInput executionInput, InstrumentationState instrumentationState)
(package private) static CoercedVariables
ValuesResolverConversion. externalValueToInternalValueForVariables(InputInterceptor inputInterceptor, GraphQLSchema schema, java.util.List<VariableDefinition> variableDefinitions, RawVariables rawVariables, GraphQLContext graphqlContext, java.util.Locale locale)
performs validation tooprotected GraphQLFieldDefinition
ExecutionStrategy. getFieldDef(GraphQLSchema schema, GraphQLObjectType parentType, Field field)
Called to discover the field definition give the current parameters and the ASTField
static java.util.Map<java.lang.String,NormalizedInputValue>
ValuesResolver. getNormalizedVariableValues(GraphQLSchema schema, java.util.List<VariableDefinition> variableDefinitions, RawVariables rawVariables, GraphQLContext graphqlContext, java.util.Locale locale)
Normalized variables values are Literals with type information.static GraphQLType
TypeFromAST. getTypeFromAST(GraphQLSchema schema, Type type)
ExecutionContextBuilder
ExecutionContextBuilder. graphQLSchema(GraphQLSchema graphQLSchema)
FieldCollectorParameters.Builder
FieldCollectorParameters.Builder. schema(GraphQLSchema graphQLSchema)
TypeResolutionParameters.Builder
TypeResolutionParameters.Builder. schema(GraphQLSchema schema)
-
Uses of GraphQLSchema in graphql.execution.conditional
Methods in graphql.execution.conditional that return GraphQLSchema Modifier and Type Method Description @Nullable GraphQLSchema
ConditionalNodeDecisionEnvironment. getGraphQlSchema()
Methods in graphql.execution.conditional with parameters of type GraphQLSchema Modifier and Type Method Description private boolean
ConditionalNodes. customShouldInclude(java.util.Map<java.lang.String,java.lang.Object> variables, DirectivesContainer<?> element, GraphQLSchema graphQLSchema, GraphQLContext graphQLContext, ConditionalNodeDecision conditionalDecision)
boolean
ConditionalNodes. shouldInclude(DirectivesContainer<?> element, java.util.Map<java.lang.String,java.lang.Object> variables, GraphQLSchema graphQLSchema, GraphQLContext graphQLContext)
-
Uses of GraphQLSchema in graphql.execution.directives
Fields in graphql.execution.directives declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
QueryDirectivesBuilder. schema
private GraphQLSchema
QueryDirectivesImpl. schema
Methods in graphql.execution.directives with parameters of type GraphQLSchema Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<GraphQLDirective>>
DirectivesResolver. resolveDirectives(java.util.List<Directive> directives, GraphQLSchema schema, java.util.Map<java.lang.String,java.lang.Object> variables, GraphQLContext graphQLContext, java.util.Locale locale)
QueryDirectives.Builder
QueryDirectives.Builder. schema(GraphQLSchema schema)
QueryDirectives.Builder
QueryDirectivesBuilder. schema(GraphQLSchema schema)
Constructors in graphql.execution.directives with parameters of type GraphQLSchema Constructor Description QueryDirectivesImpl(MergedField mergedField, GraphQLSchema schema, java.util.Map<java.lang.String,java.lang.Object> variables, GraphQLContext graphQLContext, java.util.Locale locale)
-
Uses of GraphQLSchema in graphql.execution.instrumentation
Methods in graphql.execution.instrumentation that return GraphQLSchema Modifier and Type Method Description @NotNull GraphQLSchema
ChainedInstrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters)
@NotNull GraphQLSchema
ChainedInstrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters, InstrumentationState state)
default @NotNull GraphQLSchema
Instrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters)
default @NotNull GraphQLSchema
Instrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters, InstrumentationState state)
This is called to instrument aGraphQLSchema
before it is used to parse, validate and execute a query, allowing you to adjust what types are used.@NotNull GraphQLSchema
SimplePerformantInstrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters)
@NotNull GraphQLSchema
SimplePerformantInstrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters, InstrumentationState state)
Methods in graphql.execution.instrumentation with parameters of type GraphQLSchema Modifier and Type Method Description @NotNull GraphQLSchema
ChainedInstrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters)
@NotNull GraphQLSchema
ChainedInstrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters, InstrumentationState state)
default @NotNull GraphQLSchema
Instrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters)
default @NotNull GraphQLSchema
Instrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters, InstrumentationState state)
This is called to instrument aGraphQLSchema
before it is used to parse, validate and execute a query, allowing you to adjust what types are used.@NotNull GraphQLSchema
SimplePerformantInstrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters)
@NotNull GraphQLSchema
SimplePerformantInstrumentation. instrumentSchema(GraphQLSchema schema, InstrumentationExecutionParameters parameters, InstrumentationState state)
-
Uses of GraphQLSchema in graphql.execution.instrumentation.parameters
Fields in graphql.execution.instrumentation.parameters declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
InstrumentationCreateStateParameters. schema
private GraphQLSchema
InstrumentationExecutionParameters. schema
Methods in graphql.execution.instrumentation.parameters that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
InstrumentationCreateStateParameters. getSchema()
GraphQLSchema
InstrumentationExecutionParameters. getSchema()
Constructors in graphql.execution.instrumentation.parameters with parameters of type GraphQLSchema Constructor Description InstrumentationCreateStateParameters(GraphQLSchema schema, ExecutionInput executionInput)
InstrumentationExecutionParameters(ExecutionInput executionInput, GraphQLSchema schema, InstrumentationState instrumentationState)
InstrumentationValidationParameters(ExecutionInput executionInput, Document document, GraphQLSchema schema, InstrumentationState instrumentationState)
-
Uses of GraphQLSchema in graphql.introspection
Methods in graphql.introspection that return GraphQLSchema Modifier and Type Method Description private GraphQLSchema
IntrospectionWithDirectivesSupport. addDirectiveDefinitionFilter(GraphQLSchema schema)
GraphQLSchema
IntrospectionWithDirectivesSupport. apply(GraphQLSchema schema)
This will transform the schema to have the new extension shapesGraphQLSchema
IntrospectionDataFetchingEnvironment. getGraphQLSchema()
GraphQLSchema
IntrospectionWithDirectivesSupport.DirectivePredicateEnvironment. getSchema()
Methods in graphql.introspection with parameters of type GraphQLSchema Modifier and Type Method Description private GraphQLSchema
IntrospectionWithDirectivesSupport. addDirectiveDefinitionFilter(GraphQLSchema schema)
GraphQLSchema
IntrospectionWithDirectivesSupport. apply(GraphQLSchema schema)
This will transform the schema to have the new extension shapesprivate @NotNull IntrospectionWithDirectivesSupport.DirectivePredicateEnvironment
IntrospectionWithDirectivesSupport. buildDirectivePredicateEnv(GraphQLSchema schema, boolean isDefinedDirective, GraphQLDirectiveContainer container, java.lang.String directiveName)
private java.util.List<GraphQLAppliedDirective>
IntrospectionWithDirectivesSupport. filterAppliedDirectives(GraphQLSchema schema, boolean isDefinedDirective, GraphQLDirectiveContainer container, java.util.List<GraphQLAppliedDirective> directives)
private java.util.List<GraphQLDirective>
IntrospectionWithDirectivesSupport. filterDirectives(GraphQLSchema schema, boolean isDefinedDirective, GraphQLDirectiveContainer container, java.util.List<GraphQLDirective> directives)
static GraphQLFieldDefinition
Introspection. getFieldDef(GraphQLSchema schema, GraphQLCompositeType parentType, java.lang.String fieldName)
This will look up a field definition by name, and understand that fields like __typename and __schema are special and take precedence in field resolution -
Uses of GraphQLSchema in graphql.normalized
Fields in graphql.normalized declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
FieldCollectorNormalizedQueryParams.Builder. graphQLSchema
private GraphQLSchema
FieldCollectorNormalizedQueryParams. graphQLSchema
Methods in graphql.normalized that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
FieldCollectorNormalizedQueryParams. getGraphQLSchema()
Methods in graphql.normalized with parameters of type GraphQLSchema Modifier and Type Method Description static ExecutableNormalizedOperationToAstCompiler.CompilerResult
ExecutableNormalizedOperationToAstCompiler. compileToDocument(@NotNull GraphQLSchema schema, OperationDefinition.Operation operationKind, @Nullable java.lang.String operationName, @NotNull java.util.List<ExecutableNormalizedField> topLevelFields, @NotNull java.util.Map<ExecutableNormalizedField,QueryDirectives> normalizedFieldToQueryDirectives, @Nullable VariablePredicate variablePredicate)
This will compile an operation textDocument
with possibly variables from the givenExecutableNormalizedField
s TheVariablePredicate
is used called to decide if the given argument values should be made into a variable OR inlined into the operation text as a graphql literal.static ExecutableNormalizedOperationToAstCompiler.CompilerResult
ExecutableNormalizedOperationToAstCompiler. compileToDocument(@NotNull GraphQLSchema schema, OperationDefinition.Operation operationKind, @Nullable java.lang.String operationName, @NotNull java.util.List<ExecutableNormalizedField> topLevelFields, @Nullable VariablePredicate variablePredicate)
This will compile an operation textDocument
with possibly variables from the givenExecutableNormalizedField
s TheVariablePredicate
is used called to decide if the given argument values should be made into a variable OR inlined into the operation text as a graphql literal.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. createExecutableNormalizedOperation(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition, java.util.Map<java.lang.String,FragmentDefinition> fragments, CoercedVariables coercedVariableValues)
This will create a runtime representation of the graphql operation that would be executed in a runtime sense.private ExecutableNormalizedOperation
ExecutableNormalizedOperationFactory. createExecutableNormalizedOperationImplWithRawVariables(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition, java.util.Map<java.lang.String,FragmentDefinition> fragments, RawVariables rawVariables, ExecutableNormalizedOperationFactory.Options options)
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.private ExecutableNormalizedOperation
ExecutableNormalizedOperationFactory. createNormalizedQueryImpl(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition, java.util.Map<java.lang.String,FragmentDefinition> fragments, CoercedVariables coercedVariableValues, @Nullable java.util.Map<java.lang.String,NormalizedInputValue> normalizedVariableValues, ExecutableNormalizedOperationFactory.Options options)
Creates a new ExecutableNormalizedOperation for the provided queryvoid
ExecutableNormalizedField. forEachFieldDefinition(GraphQLSchema schema, java.util.function.Consumer<GraphQLFieldDefinition> consumer)
private static @NotNull GraphQLFieldDefinition
ExecutableNormalizedOperationToAstCompiler. getFieldDefinition(GraphQLSchema schema, java.lang.String parentType, ExecutableNormalizedField nf)
java.util.List<GraphQLFieldDefinition>
ExecutableNormalizedField. getFieldDefinitions(GraphQLSchema schema)
private java.util.Set<GraphQLInterfaceType>
ExecutableNormalizedField. getInterfacesCommonToAllOutputTypes(GraphQLSchema schema)
This tries to find interfaces common to all the field output types.private GraphQLFieldDefinition
ExecutableNormalizedField. getOneFieldDefinition(GraphQLSchema schema)
This is NOT public as it is not recommended usage.private static @Nullable GraphQLObjectType
ExecutableNormalizedOperationToAstCompiler. getOperationType(@NotNull GraphQLSchema schema, OperationDefinition.Operation operationKind)
GraphQLOutputType
ExecutableNormalizedField. getType(GraphQLSchema schema)
java.util.List<GraphQLOutputType>
ExecutableNormalizedField. getTypes(GraphQLSchema schema)
boolean
ExecutableNormalizedField. isConditional(@NotNull GraphQLSchema schema)
Determines whether thisExecutableNormalizedField
needs a fragment to select the field.private static boolean
ENFMerger. isFieldInSharedInterface(ExecutableNormalizedField fieldOne, ExecutableNormalizedField fieldTwo, GraphQLSchema schema)
static void
ENFMerger. merge(ExecutableNormalizedField parent, java.util.List<ExecutableNormalizedField> childrenWithSameResultKey, GraphQLSchema schema)
private java.util.Set<GraphQLObjectType>
ExecutableNormalizedOperationFactory. narrowDownPossibleObjects(java.util.Set<GraphQLObjectType> currentOnes, GraphQLCompositeType typeCondition, GraphQLSchema graphQLSchema)
private static GraphQLFieldDefinition
ExecutableNormalizedField. resolveIntrospectionField(GraphQLSchema schema, java.util.Set<java.lang.String> objectTypeNames, java.lang.String fieldName)
private com.google.common.collect.ImmutableSet<GraphQLObjectType>
ExecutableNormalizedOperationFactory. resolvePossibleObjects(GraphQLCompositeType type, GraphQLSchema graphQLSchema)
private com.google.common.collect.ImmutableSet<GraphQLObjectType>
ExecutableNormalizedOperationFactory. resolvePossibleObjects(java.util.List<GraphQLFieldDefinition> defs, GraphQLSchema graphQLSchema)
FieldCollectorNormalizedQueryParams.Builder
FieldCollectorNormalizedQueryParams.Builder. schema(GraphQLSchema graphQLSchema)
private static java.util.Map<java.lang.String,Field>
ExecutableNormalizedOperationToAstCompiler. selectionForNormalizedField(GraphQLSchema schema, ExecutableNormalizedField executableNormalizedField, @NotNull java.util.Map<ExecutableNormalizedField,QueryDirectives> normalizedFieldToQueryDirectives, VariableAccumulator variableAccumulator)
private static Field
ExecutableNormalizedOperationToAstCompiler. selectionForNormalizedField(GraphQLSchema schema, java.lang.String objectTypeName, ExecutableNormalizedField executableNormalizedField, @NotNull java.util.Map<ExecutableNormalizedField,QueryDirectives> normalizedFieldToQueryDirectives, VariableAccumulator variableAccumulator)
private static java.util.List<Selection<?>>
ExecutableNormalizedOperationToAstCompiler. subselectionsForNormalizedField(GraphQLSchema schema, @NotNull java.lang.String parentOutputType, java.util.List<ExecutableNormalizedField> executableNormalizedFields, @NotNull java.util.Map<ExecutableNormalizedField,QueryDirectives> normalizedFieldToQueryDirectives, VariableAccumulator variableAccumulator)
-
Uses of GraphQLSchema in graphql.schema
Fields in graphql.schema declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
GraphQLSchema.BuilderWithoutTypes. existingSchema
private GraphQLSchema
DataFetchingEnvironmentImpl.Builder. graphQLSchema
private GraphQLSchema
DataFetchingEnvironmentImpl. graphQLSchema
private GraphQLSchema
DataFetchingFieldSelectionSetImpl. schema
private GraphQLSchema
DataFetchingFieldSelectionSetImpl.SelectedFieldImpl. schema
(package private) GraphQLSchema
SchemaTransformer.DummyRoot. schema
Methods in graphql.schema that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
GraphQLSchema.Builder. build()
Builds the schemaGraphQLSchema
GraphQLSchema.Builder. build(java.util.Set<GraphQLType> additionalTypes)
Deprecated.- Use theGraphQLSchema.Builder.additionalType(GraphQLType)
methodsGraphQLSchema
GraphQLSchema.Builder. build(java.util.Set<GraphQLType> additionalTypes, java.util.Set<GraphQLDirective> additionalDirectives)
Deprecated.GraphQLSchema
GraphQLSchema.BuilderWithoutTypes. build()
private GraphQLSchema
GraphQLSchema.Builder. buildImpl()
GraphQLSchema
DataFetchingEnvironment. getGraphQLSchema()
GraphQLSchema
DataFetchingEnvironmentImpl. getGraphQLSchema()
GraphQLSchema
DelegatingDataFetchingEnvironment. getGraphQLSchema()
GraphQLSchema
SchemaTransformer.DummyRoot. rebuildSchema(GraphQLCodeRegistry.Builder codeRegistry)
GraphQLSchema
GraphQLSchema. transform(java.util.function.Consumer<GraphQLSchema.Builder> builderConsumer)
This helps you transform the current GraphQLSchema object into another one by starting a builder with all the current values and allows you to transform it how you want.GraphQLSchema
SchemaTransformer. transform(GraphQLSchema schema, GraphQLTypeVisitor visitor)
GraphQLSchema
SchemaTransformer. transform(GraphQLSchema schema, GraphQLTypeVisitor visitor, java.util.function.Consumer<GraphQLSchema.Builder> postTransformation)
static GraphQLSchema
SchemaTransformer. transformSchema(GraphQLSchema schema, GraphQLTypeVisitor visitor)
Transforms a GraphQLSchema and returns a new GraphQLSchema object.static GraphQLSchema
SchemaTransformer. transformSchema(GraphQLSchema schema, GraphQLTypeVisitor visitor, java.util.function.Consumer<GraphQLSchema.Builder> postTransformation)
Transforms a GraphQLSchema and returns a new GraphQLSchema object.GraphQLSchema
GraphQLSchema. transformWithoutTypes(java.util.function.Consumer<GraphQLSchema.BuilderWithoutTypes> builderConsumer)
This helps you transform the current GraphQLSchema object into another one by using a builder that only allows you to change simple values and does not involve changing the complex schema type graph.private GraphQLSchema
GraphQLSchema.Builder. validateSchema(GraphQLSchema graphQLSchema)
Methods in graphql.schema with parameters of type GraphQLSchema Modifier and Type Method Description TraverserResult
SchemaTraverser. depthFirstFullSchema(GraphQLTypeVisitor typeVisitor, GraphQLSchema schema)
This will visit all of the schema elements in the specified schema and invokes the visitor.TraverserResult
SchemaTraverser. depthFirstFullSchema(java.util.List<GraphQLTypeVisitor> typeVisitors, GraphQLSchema schema, java.util.Map<java.lang.Class<?>,java.lang.Object> rootVars)
This will visit all of the schema elements in the specified schema, invoking each visitor in turn.DataFetchingEnvironmentImpl.Builder
DataFetchingEnvironmentImpl.Builder. graphQLSchema(GraphQLSchema graphQLSchema)
static DataFetchingFieldSelectionSet
DataFetchingFieldSelectionSetImpl. newCollector(GraphQLSchema schema, GraphQLOutputType fieldType, java.util.function.Supplier<ExecutableNormalizedField> normalizedFieldSupplier)
static GraphQLSchema.Builder
GraphQLSchema. newSchema(GraphQLSchema existingSchema)
This allows you to build a schema from an existing schema.private void
SchemaTransformer. replaceTypeReferences(SchemaTransformer.DummyRoot dummyRoot, GraphQLSchema schema, GraphQLCodeRegistry.Builder codeRegistry, java.util.Map<java.lang.String,GraphQLNamedType> changedTypes)
private static GraphQLAppliedDirective[]
GraphQLSchema. schemaAppliedDirectivesArray(GraphQLSchema existingSchema)
private static GraphQLDirective[]
GraphQLSchema. schemaDirectivesArray(GraphQLSchema existingSchema)
GraphQLSchema
SchemaTransformer. transform(GraphQLSchema schema, GraphQLTypeVisitor visitor)
GraphQLSchema
SchemaTransformer. transform(GraphQLSchema schema, GraphQLTypeVisitor visitor, java.util.function.Consumer<GraphQLSchema.Builder> postTransformation)
private java.lang.Object
SchemaTransformer. transformImpl(GraphQLSchema schema, GraphQLSchemaElement schemaElement, GraphQLTypeVisitor visitor, java.util.function.Consumer<GraphQLSchema.Builder> postTransformation)
static GraphQLSchema
SchemaTransformer. transformSchema(GraphQLSchema schema, GraphQLTypeVisitor visitor)
Transforms a GraphQLSchema and returns a new GraphQLSchema object.static GraphQLSchema
SchemaTransformer. transformSchema(GraphQLSchema schema, GraphQLTypeVisitor visitor, java.util.function.Consumer<GraphQLSchema.Builder> postTransformation)
Transforms a GraphQLSchema and returns a new GraphQLSchema object.private boolean
SchemaTransformer. traverseAndTransform(SchemaTransformer.DummyRoot dummyRoot, java.util.Map<java.lang.String,GraphQLNamedType> changedTypes, java.util.Map<java.lang.String,GraphQLTypeReference> typeReferences, GraphQLTypeVisitor visitor, GraphQLCodeRegistry.Builder codeRegistry, GraphQLSchema schema)
private GraphQLSchema
GraphQLSchema.Builder. validateSchema(GraphQLSchema graphQLSchema)
Constructors in graphql.schema with parameters of type GraphQLSchema Constructor Description BuilderWithoutTypes(GraphQLSchema existingSchema)
DataFetchingFieldSelectionSetImpl(java.util.function.Supplier<ExecutableNormalizedField> normalizedFieldSupplier, GraphQLSchema schema)
DummyRoot(GraphQLSchema schema)
GraphQLSchema(GraphQLSchema existingSchema, GraphQLCodeRegistry codeRegistry, com.google.common.collect.ImmutableMap<java.lang.String,GraphQLNamedType> typeMap, com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableList<GraphQLObjectType>> interfaceNameToObjectTypes)
SelectedFieldImpl(java.lang.String simpleQualifiedName, java.lang.String fullyQualifiedName, ExecutableNormalizedField executableNormalizedField, GraphQLSchema schema)
-
Uses of GraphQLSchema in graphql.schema.diff
Methods in graphql.schema.diff with parameters of type GraphQLSchema Modifier and Type Method Description static DiffSet
DiffSet. diffSet(GraphQLSchema schemaOld, GraphQLSchema schemaNew)
Deprecated.Creates a diff set out of the result of 2 schemas.static SchemaDiffSet
SchemaDiffSet. diffSetFromIntrospection(GraphQLSchema oldSchema, GraphQLSchema newSchema)
Creates an schema diff set out of the result of 2 introspection queries.static SchemaDiffSet
SchemaDiffSet. diffSetFromSdl(GraphQLSchema oldSchema, GraphQLSchema newSchema)
Creates an schema diff set out of the two SDL definition Strings.private static java.lang.String
SchemaDiffSet. getSchemaSdl(GraphQLSchema schema)
private static java.util.Map<java.lang.String,java.lang.Object>
DiffSet. introspect(GraphQLSchema schema)
Deprecated.private static java.util.Map<java.lang.String,java.lang.Object>
SchemaDiffSet. introspect(GraphQLSchema schema)
-
Uses of GraphQLSchema in graphql.schema.diffing
Methods in graphql.schema.diffing with parameters of type GraphQLSchema Modifier and Type Method Description private void
SchemaGraphFactory. addSchemaVertex(SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
SchemaGraph
SchemaGraphFactory. createGraph(GraphQLSchema schema)
EditOperationAnalysisResult
SchemaDiffing. diffAndAnalyze(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2)
java.util.List<EditOperation>
SchemaDiffing. diffGraphQLSchema(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2)
DiffImpl.OptimalEdit
SchemaDiffing. diffGraphQLSchemaAllEdits(GraphQLSchema graphQLSchema1, GraphQLSchema graphQLSchema2, java.util.concurrent.atomic.AtomicInteger algoIterationCount)
private void
SchemaGraphFactory. handleDirective(Vertex directive, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
SchemaGraphFactory. handleField(Vertex fieldVertex, GraphQLFieldDefinition fieldDefinition, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
SchemaGraphFactory. handleInputField(Vertex inputFieldVertex, GraphQLInputObjectField inputField, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
SchemaGraphFactory. handleInputObject(Vertex inputObject, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
SchemaGraphFactory. handleInterfaceVertex(Vertex interfaceVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
SchemaGraphFactory. handleObjectVertex(Vertex objectVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
SchemaGraphFactory. handleUnion(Vertex unionVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
Uses of GraphQLSchema in graphql.schema.diffing.ana
Fields in graphql.schema.diffing.ana declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
EditOperationAnalyzer. newSchema
private GraphQLSchema
EditOperationAnalyzer. oldSchema
Constructors in graphql.schema.diffing.ana with parameters of type GraphQLSchema Constructor Description EditOperationAnalyzer(GraphQLSchema oldSchema, GraphQLSchema newSchema, SchemaGraph oldSchemaGraph, SchemaGraph newSchemaGraph)
-
Uses of GraphQLSchema in graphql.schema.idl
Methods in graphql.schema.idl that return GraphQLSchema Modifier and Type Method Description static GraphQLSchema
SchemaGenerator. createdMockedSchema(java.lang.String sdl)
Created a schema from the SDL that is has a mocked runtime.GraphQLSchema
SchemaGenerator. makeExecutableSchema(SchemaGenerator.Options options, TypeDefinitionRegistry typeRegistry, RuntimeWiring wiring)
This will take aTypeDefinitionRegistry
and aRuntimeWiring
and put them together to create a executable schema controlled by the provided options.GraphQLSchema
SchemaGenerator. makeExecutableSchema(TypeDefinitionRegistry typeRegistry, RuntimeWiring wiring)
This will take aTypeDefinitionRegistry
and aRuntimeWiring
and put them together to create a executable schemaprivate GraphQLSchema
SchemaGenerator. makeExecutableSchemaImpl(TypeDefinitionRegistry typeRegistry, RuntimeWiring wiring, java.util.Map<java.lang.String,OperationTypeDefinition> operationTypeDefinitions, SchemaGenerator.Options options)
static GraphQLSchema
UnExecutableSchemaGenerator. makeUnExecutableSchema(TypeDefinitionRegistry registry)
GraphQLSchema
SchemaDirectiveWiringSchemaGeneratorPostProcessing. process(GraphQLSchema originalSchema)
GraphQLSchema
SchemaGeneratorPostProcessing. process(GraphQLSchema originalSchema)
Deprecated.Called to transform the schema from its built state into something elseMethods in graphql.schema.idl that return types with arguments of type GraphQLSchema Modifier and Type Method Description private SchemaPrinter.SchemaElementPrinter<GraphQLSchema>
SchemaPrinter. schemaPrinter()
Methods in graphql.schema.idl with parameters of type GraphQLSchema Modifier and Type Method Description private java.util.List<GraphQLDirective>
SchemaPrinter. getSchemaDirectives(GraphQLSchema schema)
java.lang.String
SchemaPrinter. print(GraphQLSchema schema)
This can print an in memory GraphQL schema back to a logical schema definitionGraphQLSchema
SchemaDirectiveWiringSchemaGeneratorPostProcessing. process(GraphQLSchema originalSchema)
GraphQLSchema
SchemaGeneratorPostProcessing. process(GraphQLSchema originalSchema)
Deprecated.Called to transform the schema from its built state into something else -
Uses of GraphQLSchema in graphql.schema.impl
Methods in graphql.schema.impl with parameters of type GraphQLSchema Modifier and Type Method Description static GraphQLObjectType
SchemaUtil. getOperationRootType(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition)
java.util.Map<java.lang.String,java.util.List<GraphQLImplementingType>>
SchemaUtil. groupImplementationsForInterfacesAndObjects(GraphQLSchema schema)
static void
SchemaUtil. replaceTypeReferences(GraphQLSchema schema)
static void
SchemaUtil. visitPartiallySchema(GraphQLSchema partiallyBuiltSchema, GraphQLTypeVisitor... visitors)
Called to visit a partially built schema (duringGraphQLSchema
build phases) with a set of visitors Each visitor is expected to hold its own side effects that might be last used to construct a full schema -
Uses of GraphQLSchema in graphql.schema.transform
Methods in graphql.schema.transform that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
FieldVisibilitySchemaTransformation. apply(GraphQLSchema schema)
private GraphQLSchema
FieldVisibilitySchemaTransformation. removeUnreferencedTypes(java.util.Set<GraphQLType> markedForRemovalTypes, GraphQLSchema connectedSchema)
Methods in graphql.schema.transform with parameters of type GraphQLSchema Modifier and Type Method Description GraphQLSchema
FieldVisibilitySchemaTransformation. apply(GraphQLSchema schema)
private java.util.function.Function<GraphQLSchemaElement,java.util.List<GraphQLSchemaElement>>
FieldVisibilitySchemaTransformation. getChildrenFn(GraphQLSchema schema)
private java.util.List<GraphQLObjectType>
FieldVisibilitySchemaTransformation. getOperationTypes(GraphQLSchema schema)
private java.util.List<GraphQLSchemaElement>
FieldVisibilitySchemaTransformation. getRootTypes(GraphQLSchema schema)
private GraphQLSchema
FieldVisibilitySchemaTransformation. removeUnreferencedTypes(java.util.Set<GraphQLType> markedForRemovalTypes, GraphQLSchema connectedSchema)
-
Uses of GraphQLSchema in graphql.schema.usage
Methods in graphql.schema.usage with parameters of type GraphQLSchema Modifier and Type Method Description static SchemaUsage
SchemaUsageSupport. getSchemaUsage(GraphQLSchema schema)
This builds outSchemaUsage
statistics about the usage of types and directives within a schemajava.util.Set<GraphQLNamedSchemaElement>
SchemaUsage. getUnReferencedElements(GraphQLSchema schema)
This returns all the unreferenced named elements in a schema.private boolean
SchemaUsage. isNamedElementReferenced(GraphQLSchema schema, java.lang.String elementName, java.util.Set<java.lang.String> pathSoFar)
private boolean
SchemaUsage. isReferencedImpl(GraphQLSchema schema, java.lang.String elementName, java.util.Set<java.lang.String> pathSoFar)
boolean
SchemaUsage. isStronglyReferenced(GraphQLSchema schema, java.lang.String elementName)
Returns true if the named element is strongly reference somewhere in the schema back to the root types such as the schema query, mutation or subscription types. -
Uses of GraphQLSchema in graphql.schema.validation
Methods in graphql.schema.validation with parameters of type GraphQLSchema Modifier and Type Method Description private boolean
AppliedDirectiveArgumentsAreValid. isValidExternalValue(GraphQLSchema schema, java.lang.Object externalValue, GraphQLInputType type, GraphQLContext graphQLContext, java.util.Locale locale)
private boolean
DefaultValuesAreValid. isValidExternalValue(GraphQLSchema schema, java.lang.Object externalValue, GraphQLInputType type, GraphQLContext graphQLContext)
java.util.Set<SchemaValidationError>
SchemaValidator. validateSchema(GraphQLSchema schema)
-
Uses of GraphQLSchema in graphql.schema.visitor
Methods in graphql.schema.visitor that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
GraphQLSchemaVisitorEnvironment. getSchema()
GraphQLSchema
GraphQLSchemaVisitorEnvironmentImpl. getSchema()
-
Uses of GraphQLSchema in graphql.util
Fields in graphql.util declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
Anonymizer.AnonymizeResult. schema
Methods in graphql.util that return GraphQLSchema Modifier and Type Method Description static GraphQLSchema
Anonymizer. anonymizeSchema(GraphQLSchema schema)
static GraphQLSchema
Anonymizer. anonymizeSchema(java.lang.String sdl)
GraphQLSchema
Anonymizer.AnonymizeResult. getSchema()
Methods in graphql.util with parameters of type GraphQLSchema Modifier and Type Method Description static GraphQLSchema
Anonymizer. anonymizeSchema(GraphQLSchema schema)
static Anonymizer.AnonymizeResult
Anonymizer. anonymizeSchemaAndQueries(GraphQLSchema schema, java.util.List<java.lang.String> queries)
static Anonymizer.AnonymizeResult
Anonymizer. anonymizeSchemaAndQueries(GraphQLSchema schema, java.util.List<java.lang.String> queries, java.util.Map<java.lang.String,java.lang.Object> variables)
private static GraphQLType
Anonymizer. fromTypeToGraphQLType(Type type, GraphQLSchema schema)
private static java.util.Set<GraphQLFieldDefinition>
Anonymizer. getSameFields(java.lang.String fieldName, java.lang.String objectOrInterfaceName, java.util.Map<java.lang.String,java.util.List<GraphQLImplementingType>> interfaceToImplementations, GraphQLSchema schema)
private static void
Anonymizer. getSameFieldsImpl(java.lang.String fieldName, java.lang.String curObjectOrInterface, java.util.Map<java.lang.String,java.util.List<GraphQLImplementingType>> interfaceToImplementations, GraphQLSchema schema, java.util.Set<java.lang.String> alreadyChecked, java.util.Set<GraphQLFieldDefinition> result)
static java.util.Map<GraphQLNamedSchemaElement,java.lang.String>
Anonymizer. recordNewNamesForSchema(GraphQLSchema schema)
private static java.lang.String
Anonymizer. rewriteQuery(java.lang.String query, GraphQLSchema schema, java.util.Map<GraphQLNamedSchemaElement,java.lang.String> newNames, java.util.Map<java.lang.String,java.lang.Object> variables)
Constructors in graphql.util with parameters of type GraphQLSchema Constructor Description AnonymizeResult(GraphQLSchema schema, java.util.List<java.lang.String> queries)
-
Uses of GraphQLSchema in graphql.validation
Fields in graphql.validation declared as GraphQLSchema Modifier and Type Field Description private GraphQLSchema
TraversalContext. schema
private GraphQLSchema
ValidationContext. schema
Methods in graphql.validation that return GraphQLSchema Modifier and Type Method Description GraphQLSchema
ValidationContext. getSchema()
Methods in graphql.validation with parameters of type GraphQLSchema Modifier and Type Method Description private GraphQLFieldDefinition
TraversalContext. getFieldDef(GraphQLSchema schema, GraphQLType parentType, Field field)
(package private) boolean
ValidationUtil. isValidLiteralValue(Value<?> value, GraphQLInputObjectType type, GraphQLSchema schema, GraphQLContext graphQLContext, java.util.Locale locale)
private boolean
ValidationUtil. isValidLiteralValue(Value<?> value, GraphQLList type, GraphQLSchema schema, GraphQLContext graphQLContext, java.util.Locale locale)
boolean
ValidationUtil. isValidLiteralValue(Value<?> value, GraphQLType type, GraphQLSchema schema, GraphQLContext graphQLContext, java.util.Locale locale)
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 GraphQLSchema Constructor Description TraversalContext(GraphQLSchema graphQLSchema)
ValidationContext(GraphQLSchema schema, Document document, I18n i18n)
-