Uses of Interface
graphql.schema.GraphQLType
-
-
Uses of GraphQLType in graphql
Fields in graphql declared as GraphQLType Modifier and Type Field Description private GraphQLTypeTypeMismatchError. expectedTypeprivate GraphQLTypeTypeResolutionEnvironment. fieldTypeFields 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. registryMethods in graphql that return GraphQLType Modifier and Type Method Description GraphQLTypeTypeResolutionEnvironment. getFieldType()Methods in graphql with parameters of type GraphQLType Modifier and Type Method Description static Introspection.TypeKindTypeMismatchError.GraphQLTypeToTypeKindMapping. getTypeKindFromGraphQLType(GraphQLType type)private java.lang.StringTypeMismatchError. 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 GraphQLTypeTypeResolutionParameters.Builder. fieldTypeprivate GraphQLTypeTypeResolutionParameters. fieldTypeMethods in graphql.execution that return GraphQLType Modifier and Type Method Description GraphQLTypeTypeResolutionParameters. getFieldType()static GraphQLTypeTypeFromAST. getTypeFromAST(GraphQLSchema schema, Type type)Methods in graphql.execution with parameters of type GraphQLType Modifier and Type Method Description private booleanFieldCollector. checkTypeCondition(FieldCollectorParameters parameters, GraphQLType conditionType)TypeResolutionParameters.BuilderTypeResolutionParameters.Builder. fieldType(GraphQLType fieldType)private static @Nullable java.lang.ObjectValuesResolverConversion. literalToInternalValueImpl(InputInterceptor inputInterceptor, GraphqlFieldVisibility fieldVisibility, GraphQLType type, Value inputValue, CoercedVariables coercedVariables, GraphQLContext graphqlContext, java.util.Locale locale)static java.lang.ObjectValuesResolver. literalToNormalizedValue(GraphqlFieldVisibility fieldVisibility, GraphQLType type, Value inputValue, java.util.Map<java.lang.String,NormalizedInputValue> normalizedVariables)protected GraphQLObjectTypeExecutionStrategy. resolveType(ExecutionContext executionContext, ExecutionStrategyParameters parameters, GraphQLType fieldType)GraphQLObjectTypeResolveType. resolveType(ExecutionContext executionContext, MergedField field, java.lang.Object source, ExecutionStepInfo executionStepInfo, GraphQLType fieldType, java.lang.Object localContext)private static java.lang.ObjectValuesResolverLegacy. 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.ObjectValuesResolverConversion. 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 GraphQLTypeIntrospectionDataFetchingEnvironment. getParentType()Methods in graphql.introspection with parameters of type GraphQLType Modifier and Type Method Description private GraphQLObjectTypeIntrospectionWithDirectivesSupport. mkAppliedDirectiveType(java.lang.String name, GraphQLType directiveArgumentType) -
Uses of GraphQLType in graphql.schema
Subinterfaces of GraphQLType in graphql.schema Modifier and Type Interface Description interfaceGraphQLCompositeTypeinterfaceGraphQLFieldsContainerTypes that can contain output fields are marked with this interfaceinterfaceGraphQLImplementingTypeA GraphQLType which can implement interfacesinterfaceGraphQLInputFieldsContainerTypes that can contain input fields are marked with this interfaceinterfaceGraphQLInputTypeInput types represent those set of types that are allowed to be accepted as graphql mutation input, as opposed toGraphQLOutputTypes which can only be used as graphql response output.interfaceGraphQLModifiedTypeA modified type wraps another graphql type and modifies it behaviorinterfaceGraphQLNamedInputTypeInput types represent those set of types that are allowed to be accepted as graphql mutation input, as opposed toGraphQLOutputTypes which can only be used as graphql response output.interfaceGraphQLNamedOutputTypeOutput types represent those set of types that are allowed to be sent back as a graphql response, as opposed toGraphQLInputTypes which can only be used as graphql mutation input.interfaceGraphQLNamedTypeA GraphQLType which is also a named element, which means it has a getName() method.interfaceGraphQLNullableTypeinterfaceGraphQLOutputTypeOutput types represent those set of types that are allowed to be sent back as a graphql response, as opposed toGraphQLInputTypes which can only be used as graphql mutation input.interfaceGraphQLUnmodifiedTypeClasses in graphql.schema that implement GraphQLType Modifier and Type Class Description classGraphQLEnumTypeA graphql enumeration type has a limited set of values.classGraphQLInputObjectTypegraphql 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.classGraphQLInterfaceTypeIn graphql, an interface is an abstract type that defines the set of fields that a type must include to implement that interface.classGraphQLListA modified type that indicates there is a list of the underlying wrapped type, eg a list of strings or a list of booleans.classGraphQLNonNullA modified type that indicates there the underlying wrapped type will not be null.classGraphQLObjectTypeThis is the work horse type and represents an object with one or more field values that can be retrieved by the graphql system.classGraphQLScalarTypeA scalar type is a leaf node in the graphql tree of types.classGraphQLTypeReferenceA special type to allow a object/interface types to reference itself.classGraphQLUnionTypeA 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 GraphQLTypeGraphQLList. originalWrappedTypeprivate GraphQLTypeGraphQLNonNull. originalWrappedTypeprivate GraphQLTypeDataFetchingEnvironmentImpl.Builder. parentTypeprivate GraphQLTypeDataFetchingEnvironmentImpl. parentTypeprivate GraphQLTypeGraphQLList. replacedWrappedTypeprivate GraphQLTypeGraphQLNonNull. replacedWrappedTypeprivate GraphQLTypeGraphQLTypeResolvingVisitor.TypeRefResolvingVisitor. resolvedTypeFields in graphql.schema with type parameters of type GraphQLType Modifier and Type Field Description private com.google.common.collect.ImmutableSet<GraphQLType>GraphQLSchema. additionalTypesprivate java.util.Set<GraphQLType>GraphQLSchema.Builder. additionalTypes(package private) java.util.Set<GraphQLType>SchemaTransformer.DummyRoot. additionalTypesMethods 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 aComparatorwith 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 notGraphQLNonNulland 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 GraphQLTypeGraphQLList. getOriginalWrappedType()GraphQLTypeGraphQLNonNull. getOriginalWrappedType()GraphQLTypeDataFetchingEnvironment. getParentType()GraphQLTypeDataFetchingEnvironmentImpl. getParentType()GraphQLTypeDelegatingDataFetchingEnvironment. getParentType()@Nullable GraphQLTypeGraphQLSchema. getType(@NotNull java.lang.String typeName)Gets the named type from the schema or null if it's not presentGraphQLTypeGraphQLList. getWrappedType()GraphQLTypeGraphQLModifiedType. getWrappedType()GraphQLTypeGraphQLNonNull. getWrappedType()private static GraphQLTypeGraphQLTypeUtil. unwrapAllImpl(GraphQLType type)static GraphQLTypeGraphQLTypeUtil. unwrapNonNull(GraphQLType type)Unwraps all non nullable layers of the type until it reaches a type that is notGraphQLNonNullstatic GraphQLTypeGraphQLTypeUtil. 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 inGraphQLNonNullandGraphQLListtype 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.BuilderGraphQLSchema.Builder. additionalType(GraphQLType additionalType)private voidGraphQLNonNull. assertNonNullWrapping(GraphQLType wrappedType)static java.lang.ObjectPropertyDataFetcherHelper. getPropertyValue(java.lang.String propertyName, java.lang.Object object, GraphQLType graphQLType)static java.lang.ObjectPropertyDataFetcherHelper. getPropertyValue(java.lang.String propertyName, java.lang.Object object, GraphQLType graphQLType, java.util.function.Supplier<DataFetchingEnvironment> environment)java.lang.ObjectPropertyFetchingImpl. getPropertyValue(java.lang.String propertyName, java.lang.Object object, GraphQLType graphQLType, boolean dfeInUse, java.util.function.Supplier<java.lang.Object> singleArgumentValue)private java.lang.ObjectPropertyFetchingImpl. getPropertyViaGetterMethod(java.lang.Object object, java.lang.String propertyName, GraphQLType graphQLType, PropertyFetchingImpl.MethodFinder methodFinder, java.util.function.Supplier<java.lang.Object> singleArgumentValue)private booleanPropertyFetchingImpl. isBooleanProperty(GraphQLType graphQLType)static booleanGraphQLTypeUtil. isEnum(GraphQLType type)Returns true if the given type is an enum typestatic booleanGraphQLTypeUtil. isInput(GraphQLType type)Returns true if the given type is an input typestatic booleanGraphQLTypeUtil. isInterfaceOrUnion(GraphQLType type)static booleanGraphQLTypeUtil. isLeaf(GraphQLType type)Returns true if the given type is a leaf type, that it cant contain any more fieldsstatic booleanGraphQLTypeUtil. isList(GraphQLType type)Returns true if the given type is a list typestatic booleanGraphQLTypeUtil. isNonNull(GraphQLType type)Returns true if the given type is a non null typestatic booleanGraphQLTypeUtil. isNotWrapped(GraphQLType type)Returns true if the given type is NOT a non null or list typestatic booleanGraphQLTypeUtil. isNullable(GraphQLType type)Returns true if the given type is a nullable typestatic booleanGraphQLTypeUtil. isObjectType(GraphQLType type)static booleanGraphQLTypeUtil. isScalar(GraphQLType type)Returns true if the given type is a scalar typestatic booleanGraphQLTypeUtil. isWrapped(GraphQLType type)Returns true if the given type is a non null or list type, that is a wrapped typestatic GraphQLListGraphQLList. 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 GraphQLNonNullGraphQLNonNull. 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.BuilderDataFetchingEnvironmentImpl.Builder. parentType(GraphQLType parentType)(package private) voidGraphQLList. replaceType(GraphQLType type)(package private) voidGraphQLNonNull. replaceType(GraphQLType type)static java.lang.StringGraphQLTypeUtil. simplePrint(GraphQLType type)This will return the type in graphql SDL format, eg [typeName!]!static GraphQLUnmodifiedTypeGraphQLTypeUtil. 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 GraphQLTypeGraphQLTypeUtil. unwrapAllImpl(GraphQLType type)static GraphQLTypeGraphQLTypeUtil. unwrapNonNull(GraphQLType type)Unwraps all non nullable layers of the type until it reaches a type that is notGraphQLNonNullstatic <T extends GraphQLType>
TGraphQLTypeUtil. unwrapNonNullAs(GraphQLType type)Unwraps all non nullable layers of the type until it reaches a type that is notGraphQLNonNulland then cast to the target type.static GraphQLTypeGraphQLTypeUtil. 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 inGraphQLNonNullandGraphQLListtype 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.BuilderGraphQLSchema.Builder. additionalTypes(java.util.Set<GraphQLType> additionalTypes)GraphQLSchemaGraphQLSchema.Builder. build(java.util.Set<GraphQLType> additionalTypes)Deprecated.- Use theGraphQLSchema.Builder.additionalType(GraphQLType)methodsGraphQLSchemaGraphQLSchema.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.StringSchemaPrinter. print(GraphQLType type)(package private) java.lang.StringSchemaPrinter. 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 voidGraphQLTypeCollectingVisitor. assertUniqueTypeObjects(GraphQLNamedType type, GraphQLType existingType)Method parameters in graphql.schema.impl with type arguments of type GraphQLType Modifier and Type Method Description private <T> voidGraphQLTypeCollectingVisitor. 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. markedForRemovalTypesprivate java.util.Set<GraphQLType>FieldVisibilitySchemaTransformation.TypeVisibilityVisitor. observedAfterTransformprivate java.util.Set<GraphQLType>FieldVisibilitySchemaTransformation.TypeVisibilityVisitor. observedBeforeTransformprivate java.util.Set<GraphQLType>FieldVisibilitySchemaTransformation.TypeObservingVisitor. observedTypesprivate java.util.Set<GraphQLType>FieldVisibilitySchemaTransformation.FieldRemovalVisitor. removedTypesMethod parameters in graphql.schema.transform with type arguments of type GraphQLType Modifier and Type Method Description private GraphQLSchemaFieldVisibilitySchemaTransformation. 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 GraphQLTypeNoUnbrokenInputCycles. unwrapNonNull(GraphQLNonNull type)Methods in graphql.schema.validation with parameters of type GraphQLType Modifier and Type Method Description private voidTypeAndFieldRule. assertNonNullType(GraphQLType type, SchemaValidationErrorCollector errorCollector)private voidInputAndOutputTypesUsedAppropriately. 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.StringInputAndOutputTypesUsedAppropriately. getTypeName(GraphQLType type)Method parameters in graphql.schema.validation with type arguments of type GraphQLType Modifier and Type Method Description private voidNoUnbrokenInputCycles. check(GraphQLInputObjectType type, java.util.Set<GraphQLType> seen, java.util.List<java.lang.String> path, SchemaValidationErrorCollector validationErrorCollector)private voidInputAndOutputTypesUsedAppropriately. 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 GraphQLTypeAnonymizer. fromTypeToGraphQLType(Type type, GraphQLSchema schema)Method parameters in graphql.util with type arguments of type GraphQLType Modifier and Type Method Description private static voidAnonymizer. 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 GraphQLFieldDefinitionTraversalContext. getFieldDef(GraphQLSchema schema, GraphQLType parentType, Field field)private GraphQLNullableTypeTraversalContext. getNullableType(GraphQLType type)protected voidArgumentValidationUtil. handleFieldNotValidError(Value<?> value, GraphQLType type, int index)protected voidValidationUtil. handleFieldNotValidError(Value<?> value, GraphQLType type, int index)protected voidArgumentValidationUtil. handleNullError(Value<?> value, GraphQLType type)protected voidValidationUtil. handleNullError(Value<?> value, GraphQLType type)booleanValidationUtil. 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) GraphQLTypeOverlappingFieldsCanBeMerged.FieldAndType. graphQLType(package private) GraphQLTypeOverlappingFieldsCanBeMerged.FieldAndType. parentTypeMethods in graphql.validation.rules that return GraphQLType Modifier and Type Method Description GraphQLTypeVariablesTypesMatcher. effectiveType(GraphQLType variableType, Value<?> defaultValue)private GraphQLTypeOverlappingFieldsCanBeMerged. getGraphQLTypeForFragmentDefinition(FragmentDefinition fragment)private GraphQLTypeOverlappingFieldsCanBeMerged. 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 booleanVariablesTypesMatcher. checkType(GraphQLType actualType, GraphQLType expectedType)private voidOverlappingFieldsCanBeMerged. 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 voidOverlappingFieldsCanBeMerged. collectFieldsForField(java.util.Map<java.lang.String,java.util.Set<OverlappingFieldsCanBeMerged.FieldAndType>> fieldMap, GraphQLType parentType, Field field)private voidOverlappingFieldsCanBeMerged. collectFieldsForInlineFragment(java.util.Map<java.lang.String,java.util.Set<OverlappingFieldsCanBeMerged.FieldAndType>> fieldMap, java.util.Set<java.lang.String> visitedFragmentSpreads, GraphQLType parentType, InlineFragment inlineFragment)booleanVariablesTypesMatcher. doesVariableTypesMatch(GraphQLType varType, Value<?> varDefaultValue, GraphQLType locationType, Value<?> locationDefaultValue)This method and variable naming was inspired from the reference graphql-js implementationprivate booleanPossibleFragmentSpreads. doTypesOverlap(GraphQLType type, GraphQLCompositeType parent)GraphQLTypeVariablesTypesMatcher. effectiveType(GraphQLType variableType, Value<?> defaultValue)private GraphQLTypeOverlappingFieldsCanBeMerged. getGraphQLTypeForInlineFragment(GraphQLType parentType, InlineFragment inlineFragment)private java.util.List<? extends GraphQLType>PossibleFragmentSpreads. getPossibleType(GraphQLType type)private booleanOverlappingFieldsCanBeMerged. isInterfaceOrUnion(GraphQLType type)private booleanPossibleFragmentSpreads. isValidTargetCompositeType(GraphQLType type)Per spec: The target type of fragment (type condition) must have kind UNION, INTERFACE, or OBJECT.private OverlappingFieldsCanBeMerged.ConflictOverlappingFieldsCanBeMerged. mkNotSameTypeError(com.google.common.collect.ImmutableList<java.lang.String> path, java.util.List<Field> fields, GraphQLType typeA, GraphQLType typeB)private booleanOverlappingFieldsCanBeMerged. sameType(GraphQLType type1, GraphQLType type2)Constructors in graphql.validation.rules with parameters of type GraphQLType Constructor Description FieldAndType(Field field, GraphQLType graphQLType, GraphQLType parentType)
-