Uses of Interface
graphql.schema.GraphQLType
-
-
Uses of GraphQLType in graphql
Fields in graphql declared as GraphQLType Modifier and Type Field Description private GraphQLType
TypeMismatchError. expectedType
private GraphQLType
TypeResolutionEnvironment. fieldType
Fields in graphql with type parameters of type GraphQLType Modifier and Type Field Description private static java.util.Map<java.lang.Class<? extends GraphQLType>,Introspection.TypeKind>
TypeMismatchError.GraphQLTypeToTypeKindMapping. registry
Methods in graphql that return GraphQLType Modifier and Type Method Description GraphQLType
TypeResolutionEnvironment. getFieldType()
Methods in graphql with parameters of type GraphQLType Modifier and Type Method Description static Introspection.TypeKind
TypeMismatchError.GraphQLTypeToTypeKindMapping. getTypeKindFromGraphQLType(GraphQLType type)
private java.lang.String
TypeMismatchError. mkMessage(ResultPath path, GraphQLType expectedType)
Constructors in graphql with parameters of type GraphQLType Constructor Description TypeMismatchError(ResultPath path, GraphQLType expectedType)
-
Uses of GraphQLType in graphql.execution
Fields in graphql.execution declared as GraphQLType Modifier and Type Field Description private GraphQLType
TypeResolutionParameters.Builder. fieldType
private GraphQLType
TypeResolutionParameters. fieldType
Methods in graphql.execution that return GraphQLType Modifier and Type Method Description GraphQLType
TypeResolutionParameters. getFieldType()
static GraphQLType
TypeFromAST. getTypeFromAST(GraphQLSchema schema, Type type)
Methods in graphql.execution with parameters of type GraphQLType Modifier and Type Method Description private boolean
FieldCollector. checkTypeCondition(FieldCollectorParameters parameters, GraphQLType conditionType)
TypeResolutionParameters.Builder
TypeResolutionParameters.Builder. fieldType(GraphQLType fieldType)
private static @Nullable java.lang.Object
ValuesResolverConversion. literalToInternalValueImpl(InputInterceptor inputInterceptor, GraphqlFieldVisibility fieldVisibility, GraphQLType type, Value inputValue, CoercedVariables coercedVariables, GraphQLContext graphqlContext, java.util.Locale locale)
static java.lang.Object
ValuesResolver. literalToNormalizedValue(GraphqlFieldVisibility fieldVisibility, GraphQLType type, Value inputValue, java.util.Map<java.lang.String,NormalizedInputValue> normalizedVariables)
protected GraphQLObjectType
ExecutionStrategy. resolveType(ExecutionContext executionContext, ExecutionStrategyParameters parameters, GraphQLType fieldType)
GraphQLObjectType
ResolveType. resolveType(ExecutionContext executionContext, MergedField field, java.lang.Object source, ExecutionStepInfo executionStepInfo, GraphQLType fieldType, java.lang.Object localContext)
private static java.lang.Object
ValuesResolverLegacy. serializeLegacy(GraphQLType type, java.lang.Object value, GraphQLContext graphqlContext, java.util.Locale locale)
static Value<?>
ValuesResolver. valueToLiteral(@NotNull InputValueWithState inputValueWithState, @NotNull GraphQLType type, GraphQLContext graphqlContext, java.util.Locale locale)
static Value<?>
ValuesResolver. valueToLiteral(@NotNull GraphqlFieldVisibility fieldVisibility, @NotNull InputValueWithState inputValueWithState, @NotNull GraphQLType type, GraphQLContext graphqlContext, java.util.Locale locale)
Takes a value which can be in different states (internal, literal, external value) and converts into Literal(package private) static java.lang.Object
ValuesResolverConversion. valueToLiteralImpl(GraphqlFieldVisibility fieldVisibility, InputValueWithState inputValueWithState, GraphQLType type, ValuesResolver.ValueMode valueMode, GraphQLContext graphqlContext, java.util.Locale locale)
(package private) static Value<?>
ValuesResolverLegacy. valueToLiteralLegacy(java.lang.Object value, GraphQLType type, GraphQLContext graphqlContext, java.util.Locale locale)
Legacy logic to convert an arbitrary java object to an Ast Literal.Constructors in graphql.execution with parameters of type GraphQLType Constructor Description InputMapDefinesTooManyFieldsException(GraphQLType graphQLType, java.lang.String fieldName)
NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, GraphQLType graphQLType)
NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, java.lang.String fieldName, GraphQLType graphQLType)
NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, java.lang.String fieldName, java.util.List<java.lang.Object> path, GraphQLType graphQLType)
NonNullableValueCoercedAsNullException(GraphQLType graphQLType)
NonNullableValueCoercedAsNullException(java.lang.String fieldName, java.util.List<java.lang.Object> path, GraphQLType graphQLType)
UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType, GraphQLType providedType)
-
Uses of GraphQLType in graphql.introspection
Methods in graphql.introspection that return GraphQLType Modifier and Type Method Description GraphQLType
IntrospectionDataFetchingEnvironment. getParentType()
Methods in graphql.introspection with parameters of type GraphQLType Modifier and Type Method Description private GraphQLObjectType
IntrospectionWithDirectivesSupport. mkAppliedDirectiveType(java.lang.String name, GraphQLType directiveArgumentType)
-
Uses of GraphQLType in graphql.schema
Subinterfaces of GraphQLType in graphql.schema Modifier and Type Interface Description interface
GraphQLCompositeType
interface
GraphQLFieldsContainer
Types that can contain output fields are marked with this interfaceinterface
GraphQLImplementingType
A GraphQLType which can implement interfacesinterface
GraphQLInputFieldsContainer
Types that can contain input fields are marked with this interfaceinterface
GraphQLInputType
Input types represent those set of types that are allowed to be accepted as graphql mutation input, as opposed toGraphQLOutputType
s which can only be used as graphql response output.interface
GraphQLModifiedType
A modified type wraps another graphql type and modifies it behaviorinterface
GraphQLNamedInputType
Input types represent those set of types that are allowed to be accepted as graphql mutation input, as opposed toGraphQLOutputType
s which can only be used as graphql response output.interface
GraphQLNamedOutputType
Output types represent those set of types that are allowed to be sent back as a graphql response, as opposed toGraphQLInputType
s which can only be used as graphql mutation input.interface
GraphQLNamedType
A GraphQLType which is also a named element, which means it has a getName() method.interface
GraphQLNullableType
interface
GraphQLOutputType
Output types represent those set of types that are allowed to be sent back as a graphql response, as opposed toGraphQLInputType
s which can only be used as graphql mutation input.interface
GraphQLUnmodifiedType
Classes in graphql.schema that implement GraphQLType Modifier and Type Class Description class
GraphQLEnumType
A graphql enumeration type has a limited set of values.class
GraphQLInputObjectType
graphql clearly delineates between the types of objects that represent the output of a query and input objects that can be fed into a graphql mutation.class
GraphQLInterfaceType
In graphql, an interface is an abstract type that defines the set of fields that a type must include to implement that interface.class
GraphQLList
A modified type that indicates there is a list of the underlying wrapped type, eg a list of strings or a list of booleans.class
GraphQLNonNull
A modified type that indicates there the underlying wrapped type will not be null.class
GraphQLObjectType
This is the work horse type and represents an object with one or more field values that can be retrieved by the graphql system.class
GraphQLScalarType
A scalar type is a leaf node in the graphql tree of types.class
GraphQLTypeReference
A special type to allow a object/interface types to reference itself.class
GraphQLUnionType
A union type is a polymorphic type that dynamically represents one of more concrete object types.Fields in graphql.schema declared as GraphQLType Modifier and Type Field Description private GraphQLType
GraphQLList. originalWrappedType
private GraphQLType
GraphQLNonNull. originalWrappedType
private GraphQLType
DataFetchingEnvironmentImpl.Builder. parentType
private GraphQLType
DataFetchingEnvironmentImpl. parentType
private GraphQLType
GraphQLList. replacedWrappedType
private GraphQLType
GraphQLNonNull. replacedWrappedType
private GraphQLType
GraphQLTypeResolvingVisitor.TypeRefResolvingVisitor. resolvedType
Fields in graphql.schema with type parameters of type GraphQLType Modifier and Type Field Description private com.google.common.collect.ImmutableSet<GraphQLType>
GraphQLSchema. additionalTypes
private java.util.Set<GraphQLType>
GraphQLSchema.Builder. additionalTypes
(package private) java.util.Set<GraphQLType>
SchemaTransformer.DummyRoot. additionalTypes
Methods in graphql.schema with type parameters of type GraphQLType Modifier and Type Method Description <T extends GraphQLType>
DefaultGraphqlTypeComparatorRegistry.BuilderDefaultGraphqlTypeComparatorRegistry.Builder. addComparator(GraphqlTypeComparatorEnvironment environment, java.lang.Class<T> comparatorClass, java.util.Comparator<? super T> comparator)
Registers aComparator
with an environment to control its permitted scope of operation.<T extends GraphQLType>
DefaultGraphqlTypeComparatorRegistry.BuilderDefaultGraphqlTypeComparatorRegistry.Builder. addComparator(java.util.function.UnaryOperator<GraphqlTypeComparatorEnvironment.Builder> builderFunction, java.lang.Class<T> comparatorClass, java.util.Comparator<? super T> comparator)
Convenience method which supplies an environment builder function.<T extends GraphQLType>
TGraphQLSchema. getTypeAs(java.lang.String typeName)
Gets the named type from the schema or null if it's not present.<T extends GraphQLType>
java.util.List<T>GraphQLSchema. getTypes(java.util.Collection<java.lang.String> typeNames)
All types with the provided names.static <T extends GraphQLType>
TGraphQLTypeUtil. unwrapAllAs(GraphQLType type)
Unwraps all layers of the type or just returns the type again if it's not a wrapped type and then cast to the target type.static <T extends GraphQLType>
TGraphQLTypeUtil. unwrapNonNullAs(GraphQLType type)
Unwraps all non nullable layers of the type until it reaches a type that is notGraphQLNonNull
and then cast to the target type.static <T extends GraphQLType>
TGraphQLTypeUtil. unwrapOneAs(GraphQLType type)
Unwraps one layer of the type or just returns the type again if it's not a wrapped type and then cast to the target type.Methods in graphql.schema that return GraphQLType Modifier and Type Method Description GraphQLType
GraphQLList. getOriginalWrappedType()
GraphQLType
GraphQLNonNull. getOriginalWrappedType()
GraphQLType
DataFetchingEnvironment. getParentType()
GraphQLType
DataFetchingEnvironmentImpl. getParentType()
GraphQLType
DelegatingDataFetchingEnvironment. getParentType()
@Nullable GraphQLType
GraphQLSchema. getType(@NotNull java.lang.String typeName)
Gets the named type from the schema or null if it's not presentGraphQLType
GraphQLList. getWrappedType()
GraphQLType
GraphQLModifiedType. getWrappedType()
GraphQLType
GraphQLNonNull. getWrappedType()
private static GraphQLType
GraphQLTypeUtil. unwrapAllImpl(GraphQLType type)
static GraphQLType
GraphQLTypeUtil. unwrapNonNull(GraphQLType type)
Unwraps all non nullable layers of the type until it reaches a type that is notGraphQLNonNull
static GraphQLType
GraphQLTypeUtil. unwrapOne(GraphQLType type)
Unwraps one layer of the type or just returns the type again if it's not a wrapped typeMethods in graphql.schema that return types with arguments of type GraphQLType Modifier and Type Method Description java.util.Set<GraphQLType>
GraphQLSchema. getAdditionalTypes()
static java.util.Stack<GraphQLType>
GraphQLTypeUtil. unwrapType(GraphQLType type)
graphql types can be wrapped inGraphQLNonNull
andGraphQLList
type wrappers so this method will unwrap the type down to the raw unwrapped type and return that wrapping as a stack, with the top of the stack being the raw underling type.Methods in graphql.schema with parameters of type GraphQLType Modifier and Type Method Description GraphQLSchema.Builder
GraphQLSchema.Builder. additionalType(GraphQLType additionalType)
private void
GraphQLNonNull. assertNonNullWrapping(GraphQLType wrappedType)
static java.lang.Object
PropertyDataFetcherHelper. getPropertyValue(java.lang.String propertyName, java.lang.Object object, GraphQLType graphQLType)
static java.lang.Object
PropertyDataFetcherHelper. getPropertyValue(java.lang.String propertyName, java.lang.Object object, GraphQLType graphQLType, java.util.function.Supplier<DataFetchingEnvironment> environment)
java.lang.Object
PropertyFetchingImpl. getPropertyValue(java.lang.String propertyName, java.lang.Object object, GraphQLType graphQLType, boolean dfeInUse, java.util.function.Supplier<java.lang.Object> singleArgumentValue)
private java.lang.Object
PropertyFetchingImpl. getPropertyViaGetterMethod(java.lang.Object object, java.lang.String propertyName, GraphQLType graphQLType, PropertyFetchingImpl.MethodFinder methodFinder, java.util.function.Supplier<java.lang.Object> singleArgumentValue)
private boolean
PropertyFetchingImpl. isBooleanProperty(GraphQLType graphQLType)
static boolean
GraphQLTypeUtil. isEnum(GraphQLType type)
Returns true if the given type is an enum typestatic boolean
GraphQLTypeUtil. isInput(GraphQLType type)
Returns true if the given type is an input typestatic boolean
GraphQLTypeUtil. isInterfaceOrUnion(GraphQLType type)
static boolean
GraphQLTypeUtil. isLeaf(GraphQLType type)
Returns true if the given type is a leaf type, that it cant contain any more fieldsstatic boolean
GraphQLTypeUtil. isList(GraphQLType type)
Returns true if the given type is a list typestatic boolean
GraphQLTypeUtil. isNonNull(GraphQLType type)
Returns true if the given type is a non null typestatic boolean
GraphQLTypeUtil. isNotWrapped(GraphQLType type)
Returns true if the given type is NOT a non null or list typestatic boolean
GraphQLTypeUtil. isNullable(GraphQLType type)
Returns true if the given type is a nullable typestatic boolean
GraphQLTypeUtil. isObjectType(GraphQLType type)
static boolean
GraphQLTypeUtil. isScalar(GraphQLType type)
Returns true if the given type is a scalar typestatic boolean
GraphQLTypeUtil. isWrapped(GraphQLType type)
Returns true if the given type is a non null or list type, that is a wrapped typestatic GraphQLList
GraphQLList. list(GraphQLType wrappedType)
A factory method for creating list types so that when used with static imports allows more readable code such as.type(list(GraphQLString))
static GraphQLNonNull
GraphQLNonNull. nonNull(GraphQLType wrappedType)
A factory method for creating non null types so that when used with static imports allows more readable code such as.type(nonNull(GraphQLString))
DataFetchingEnvironmentImpl.Builder
DataFetchingEnvironmentImpl.Builder. parentType(GraphQLType parentType)
(package private) void
GraphQLList. replaceType(GraphQLType type)
(package private) void
GraphQLNonNull. replaceType(GraphQLType type)
static java.lang.String
GraphQLTypeUtil. simplePrint(GraphQLType type)
This will return the type in graphql SDL format, eg [typeName!]!static GraphQLUnmodifiedType
GraphQLTypeUtil. unwrapAll(GraphQLType type)
Unwraps all layers of the type or just returns the type again if it's not a wrapped typestatic <T extends GraphQLType>
TGraphQLTypeUtil. unwrapAllAs(GraphQLType type)
Unwraps all layers of the type or just returns the type again if it's not a wrapped type and then cast to the target type.private static GraphQLType
GraphQLTypeUtil. unwrapAllImpl(GraphQLType type)
static GraphQLType
GraphQLTypeUtil. unwrapNonNull(GraphQLType type)
Unwraps all non nullable layers of the type until it reaches a type that is notGraphQLNonNull
static <T extends GraphQLType>
TGraphQLTypeUtil. unwrapNonNullAs(GraphQLType type)
Unwraps all non nullable layers of the type until it reaches a type that is notGraphQLNonNull
and then cast to the target type.static GraphQLType
GraphQLTypeUtil. unwrapOne(GraphQLType type)
Unwraps one layer of the type or just returns the type again if it's not a wrapped typestatic <T extends GraphQLType>
TGraphQLTypeUtil. unwrapOneAs(GraphQLType type)
Unwraps one layer of the type or just returns the type again if it's not a wrapped type and then cast to the target type.static java.util.Stack<GraphQLType>
GraphQLTypeUtil. unwrapType(GraphQLType type)
graphql types can be wrapped inGraphQLNonNull
andGraphQLList
type wrappers so this method will unwrap the type down to the raw unwrapped type and return that wrapping as a stack, with the top of the stack being the raw underling type.Method parameters in graphql.schema with type arguments of type GraphQLType Modifier and Type Method Description GraphQLSchema.Builder
GraphQLSchema.Builder. additionalTypes(java.util.Set<GraphQLType> additionalTypes)
GraphQLSchema
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.Constructors in graphql.schema with parameters of type GraphQLType Constructor Description GraphQLList(GraphQLType wrappedType)
GraphQLNonNull(GraphQLType wrappedType)
TypeRefResolvingVisitor(GraphQLType resolvedType)
-
Uses of GraphQLType in graphql.schema.idl
Methods in graphql.schema.idl with type parameters of type GraphQLType Modifier and Type Method Description <T extends GraphQLType>
TTypeInfo. decorate(GraphQLType objectType)
This will decorate a graphql type with the original hierarchy of non null and list'ness it originally contained in its definition typeMethods in graphql.schema.idl that return types with arguments of type GraphQLType Modifier and Type Method Description (package private) java.util.Set<GraphQLType>
SchemaGeneratorHelper. buildAdditionalTypes(SchemaGeneratorHelper.BuildContext buildCtx)
We build the query / mutation / subscription path as a tree of referenced types but then we build the rest of the types specified and put them in as additional typesMethods in graphql.schema.idl with parameters of type GraphQLType Modifier and Type Method Description <T extends GraphQLType>
TTypeInfo. decorate(GraphQLType objectType)
This will decorate a graphql type with the original hierarchy of non null and list'ness it originally contained in its definition typejava.lang.String
SchemaPrinter. print(GraphQLType type)
(package private) java.lang.String
SchemaPrinter. typeString(GraphQLType rawType)
-
Uses of GraphQLType in graphql.schema.impl
Methods in graphql.schema.impl with parameters of type GraphQLType Modifier and Type Method Description private void
GraphQLTypeCollectingVisitor. assertUniqueTypeObjects(GraphQLNamedType type, GraphQLType existingType)
Method parameters in graphql.schema.impl with type arguments of type GraphQLType Modifier and Type Method Description private <T> void
GraphQLTypeCollectingVisitor. saveIndirectStrongReference(java.util.function.Supplier<GraphQLType> typeSupplier)
-
Uses of GraphQLType in graphql.schema.transform
Fields in graphql.schema.transform with type parameters of type GraphQLType Modifier and Type Field Description private java.util.Set<GraphQLType>
FieldVisibilitySchemaTransformation.AdditionalTypeVisibilityVisitor. markedForRemovalTypes
private java.util.Set<GraphQLType>
FieldVisibilitySchemaTransformation.TypeVisibilityVisitor. observedAfterTransform
private java.util.Set<GraphQLType>
FieldVisibilitySchemaTransformation.TypeVisibilityVisitor. observedBeforeTransform
private java.util.Set<GraphQLType>
FieldVisibilitySchemaTransformation.TypeObservingVisitor. observedTypes
private java.util.Set<GraphQLType>
FieldVisibilitySchemaTransformation.FieldRemovalVisitor. removedTypes
Method parameters in graphql.schema.transform with type arguments of type GraphQLType Modifier and Type Method Description private GraphQLSchema
FieldVisibilitySchemaTransformation. removeUnreferencedTypes(java.util.Set<GraphQLType> markedForRemovalTypes, GraphQLSchema connectedSchema)
Constructor parameters in graphql.schema.transform with type arguments of type GraphQLType Constructor Description AdditionalTypeVisibilityVisitor(java.util.Set<GraphQLType> markedForRemovalTypes)
FieldRemovalVisitor(VisibleFieldPredicate visibilityPredicate, java.util.Set<GraphQLType> removedTypes)
TypeObservingVisitor(java.util.Set<GraphQLType> observedTypes)
-
Uses of GraphQLType in graphql.schema.validation
Methods in graphql.schema.validation that return GraphQLType Modifier and Type Method Description private GraphQLType
NoUnbrokenInputCycles. unwrapNonNull(GraphQLNonNull type)
Methods in graphql.schema.validation with parameters of type GraphQLType Modifier and Type Method Description private void
TypeAndFieldRule. assertNonNullType(GraphQLType type, SchemaValidationErrorCollector errorCollector)
private void
InputAndOutputTypesUsedAppropriately. checkTypeContext(GraphQLType type, SchemaValidationErrorCollector validationErrorCollector, java.lang.String path, java.util.function.Predicate<GraphQLType> typePredicate, java.util.function.BiFunction<java.lang.String,java.lang.String,SchemaValidationError> errorMaker)
private java.lang.String
InputAndOutputTypesUsedAppropriately. getTypeName(GraphQLType type)
Method parameters in graphql.schema.validation with type arguments of type GraphQLType Modifier and Type Method Description private void
NoUnbrokenInputCycles. check(GraphQLInputObjectType type, java.util.Set<GraphQLType> seen, java.util.List<java.lang.String> path, SchemaValidationErrorCollector validationErrorCollector)
private void
InputAndOutputTypesUsedAppropriately. checkTypeContext(GraphQLType type, SchemaValidationErrorCollector validationErrorCollector, java.lang.String path, java.util.function.Predicate<GraphQLType> typePredicate, java.util.function.BiFunction<java.lang.String,java.lang.String,SchemaValidationError> errorMaker)
-
Uses of GraphQLType in graphql.util
Methods in graphql.util that return GraphQLType Modifier and Type Method Description private static GraphQLType
Anonymizer. fromTypeToGraphQLType(Type type, GraphQLSchema schema)
Method parameters in graphql.util with type arguments of type GraphQLType Modifier and Type Method Description private static void
Anonymizer. getMatchingFieldDefinitions(java.lang.String fieldName, java.util.List<? extends GraphQLType> interfaces, java.util.Set<GraphQLFieldDefinition> result)
-
Uses of GraphQLType in graphql.validation
Methods in graphql.validation with parameters of type GraphQLType Modifier and Type Method Description private GraphQLFieldDefinition
TraversalContext. getFieldDef(GraphQLSchema schema, GraphQLType parentType, Field field)
private GraphQLNullableType
TraversalContext. getNullableType(GraphQLType type)
protected void
ArgumentValidationUtil. handleFieldNotValidError(Value<?> value, GraphQLType type, int index)
protected void
ValidationUtil. handleFieldNotValidError(Value<?> value, GraphQLType type, int index)
protected void
ArgumentValidationUtil. handleNullError(Value<?> value, GraphQLType type)
protected void
ValidationUtil. handleNullError(Value<?> value, GraphQLType type)
boolean
ValidationUtil. isValidLiteralValue(Value<?> value, GraphQLType type, GraphQLSchema schema, GraphQLContext graphQLContext, java.util.Locale locale)
-
Uses of GraphQLType in graphql.validation.rules
Fields in graphql.validation.rules declared as GraphQLType Modifier and Type Field Description (package private) GraphQLType
OverlappingFieldsCanBeMerged.FieldAndType. graphQLType
(package private) GraphQLType
OverlappingFieldsCanBeMerged.FieldAndType. parentType
Methods in graphql.validation.rules that return GraphQLType Modifier and Type Method Description GraphQLType
VariablesTypesMatcher. effectiveType(GraphQLType variableType, Value<?> defaultValue)
private GraphQLType
OverlappingFieldsCanBeMerged. getGraphQLTypeForFragmentDefinition(FragmentDefinition fragment)
private GraphQLType
OverlappingFieldsCanBeMerged. getGraphQLTypeForInlineFragment(GraphQLType parentType, InlineFragment inlineFragment)
Methods in graphql.validation.rules that return types with arguments of type GraphQLType Modifier and Type Method Description private java.util.List<? extends GraphQLType>
PossibleFragmentSpreads. getPossibleType(GraphQLType type)
Methods in graphql.validation.rules with parameters of type GraphQLType Modifier and Type Method Description private boolean
VariablesTypesMatcher. checkType(GraphQLType actualType, GraphQLType expectedType)
private void
OverlappingFieldsCanBeMerged. collectFields(java.util.Map<java.lang.String,java.util.Set<OverlappingFieldsCanBeMerged.FieldAndType>> fieldMap, SelectionSet selectionSet, GraphQLType parentType, java.util.Set<java.lang.String> visitedFragmentSpreads)
private void
OverlappingFieldsCanBeMerged. collectFieldsForField(java.util.Map<java.lang.String,java.util.Set<OverlappingFieldsCanBeMerged.FieldAndType>> fieldMap, GraphQLType parentType, Field field)
private void
OverlappingFieldsCanBeMerged. collectFieldsForInlineFragment(java.util.Map<java.lang.String,java.util.Set<OverlappingFieldsCanBeMerged.FieldAndType>> fieldMap, java.util.Set<java.lang.String> visitedFragmentSpreads, GraphQLType parentType, InlineFragment inlineFragment)
boolean
VariablesTypesMatcher. doesVariableTypesMatch(GraphQLType varType, Value<?> varDefaultValue, GraphQLType locationType, Value<?> locationDefaultValue)
This method and variable naming was inspired from the reference graphql-js implementationprivate boolean
PossibleFragmentSpreads. doTypesOverlap(GraphQLType type, GraphQLCompositeType parent)
GraphQLType
VariablesTypesMatcher. effectiveType(GraphQLType variableType, Value<?> defaultValue)
private GraphQLType
OverlappingFieldsCanBeMerged. getGraphQLTypeForInlineFragment(GraphQLType parentType, InlineFragment inlineFragment)
private java.util.List<? extends GraphQLType>
PossibleFragmentSpreads. getPossibleType(GraphQLType type)
private boolean
OverlappingFieldsCanBeMerged. isInterfaceOrUnion(GraphQLType type)
private boolean
PossibleFragmentSpreads. isValidTargetCompositeType(GraphQLType type)
Per spec: The target type of fragment (type condition) must have kind UNION, INTERFACE, or OBJECT.private OverlappingFieldsCanBeMerged.Conflict
OverlappingFieldsCanBeMerged. mkNotSameTypeError(com.google.common.collect.ImmutableList<java.lang.String> path, java.util.List<Field> fields, GraphQLType typeA, GraphQLType typeB)
private boolean
OverlappingFieldsCanBeMerged. sameType(GraphQLType type1, GraphQLType type2)
Constructors in graphql.validation.rules with parameters of type GraphQLType Constructor Description FieldAndType(Field field, GraphQLType graphQLType, GraphQLType parentType)
-