Uses of Interface
graphql.schema.GraphQLType
Packages that use GraphQLType
Package
Description
-
Uses of GraphQLType in graphql
Methods in graphql that return GraphQLTypeConstructors in graphql with parameters of type GraphQLType -
Uses of GraphQLType in graphql.execution
Methods in graphql.execution that return GraphQLTypeModifier and TypeMethodDescriptionTypeResolutionParameters.getFieldType()static GraphQLTypeTypeFromAST.getTypeFromAST(GraphQLSchema schema, Type type) Methods in graphql.execution with parameters of type GraphQLTypeModifier and TypeMethodDescriptionTypeResolutionParameters.Builder.fieldType(GraphQLType fieldType) static ObjectValuesResolver.literalToNormalizedValue(GraphqlFieldVisibility fieldVisibility, GraphQLType type, Value inputValue, Map<String, NormalizedInputValue> normalizedVariables) protected GraphQLObjectTypeExecutionStrategy.resolveType(ExecutionContext executionContext, ExecutionStrategyParameters parameters, GraphQLType fieldType) ResolveType.resolveType(ExecutionContext executionContext, MergedField field, Object source, ExecutionStepInfo executionStepInfo, GraphQLType fieldType, Object localContext) static Value<?> ValuesResolver.valueToLiteral(@NotNull InputValueWithState inputValueWithState, @NotNull GraphQLType type, GraphQLContext graphqlContext, Locale locale) static Value<?> ValuesResolver.valueToLiteral(@NotNull GraphqlFieldVisibility fieldVisibility, @NotNull InputValueWithState inputValueWithState, @NotNull GraphQLType type, GraphQLContext graphqlContext, Locale locale) Takes a value which can be in different states (internal, literal, external value) and converts into LiteralConstructors in graphql.execution with parameters of type GraphQLTypeModifierConstructorDescriptionInputMapDefinesTooManyFieldsException(GraphQLType graphQLType, String fieldName) NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, GraphQLType graphQLType) NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, String fieldName, GraphQLType graphQLType) NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, String fieldName, List<Object> path, GraphQLType graphQLType) NonNullableValueCoercedAsNullException(GraphQLType graphQLType) NonNullableValueCoercedAsNullException(String fieldName, List<Object> path, GraphQLType graphQLType) UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType, GraphQLType providedType) -
Uses of GraphQLType in graphql.introspection
Methods in graphql.introspection that return GraphQLType -
Uses of GraphQLType in graphql.schema
Subinterfaces of GraphQLType in graphql.schemaModifier and TypeInterfaceDescriptioninterfaceinterfaceTypes that can contain output fields are marked with this interfaceinterfaceA GraphQLType which can implement interfacesinterfaceTypes that can contain input fields are marked with this interfaceinterfaceInput 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.interfaceA modified type wraps another graphql type and modifies it behaviorinterfaceInput 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.interfaceOutput 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.interfaceA GraphQLType which is also a named element, which means it has a getName() method.interfaceinterfaceOutput 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.interfaceClasses in graphql.schema that implement GraphQLTypeModifier and TypeClassDescriptionclassA graphql enumeration type has a limited set of values.classgraphql 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.classIn graphql, an interface is an abstract type that defines the set of fields that a type must include to implement that interface.classA modified type that indicates there is a list of the underlying wrapped type, eg a list of strings or a list of booleans.classA modified type that indicates there the underlying wrapped type will not be null.classThis is the work horse type and represents an object with one or more field values that can be retrieved by the graphql system.classA scalar type is a leaf node in the graphql tree of types.classA special type to allow a object/interface types to reference itself.classA union type is a polymorphic type that dynamically represents one of more concrete object types.Methods in graphql.schema with type parameters of type GraphQLTypeModifier and TypeMethodDescriptionDefaultGraphqlTypeComparatorRegistry.Builder.addComparator(GraphqlTypeComparatorEnvironment environment, Class<T> comparatorClass, Comparator<? super T> comparator) Registers aComparatorwith an environment to control its permitted scope of operation.DefaultGraphqlTypeComparatorRegistry.Builder.addComparator(UnaryOperator<GraphqlTypeComparatorEnvironment.Builder> builderFunction, Class<T> comparatorClass, Comparator<? super T> comparator) Convenience method which supplies an environment builder function.<T extends GraphQLType>
TGets the named type from the schema or null if it's not present.<T extends GraphQLType>
List<T> GraphQLSchema.getTypes(Collection<String> typeNames) All types with the provided names. throwsAssertExceptionwhen a type name could not be resolvedstatic <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 GraphQLTypeModifier and TypeMethodDescriptionGraphQLList.getOriginalWrappedType()GraphQLNonNull.getOriginalWrappedType()DataFetchingEnvironment.getParentType()DataFetchingEnvironmentImpl.getParentType()DelegatingDataFetchingEnvironment.getParentType()@Nullable GraphQLTypeGets the named type from the schema or null if it's not presentGraphQLList.getWrappedType()GraphQLModifiedType.getWrappedType()GraphQLNonNull.getWrappedType()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 GraphQLTypeModifier and TypeMethodDescriptionGraphQLSchema.getAdditionalTypes()static 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 GraphQLTypeModifier and TypeMethodDescriptionGraphQLSchema.Builder.additionalType(GraphQLType additionalType) static ObjectPropertyDataFetcherHelper.getPropertyValue(String propertyName, Object object, GraphQLType graphQLType) static ObjectPropertyDataFetcherHelper.getPropertyValue(String propertyName, Object object, GraphQLType graphQLType, Supplier<DataFetchingEnvironment> environment) PropertyFetchingImpl.getPropertyValue(String propertyName, Object object, GraphQLType graphQLType, boolean dfeInUse, Supplier<Object> singleArgumentValue) 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.Builder.parentType(GraphQLType parentType) static 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.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 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 GraphQLTypeModifier and TypeMethodDescriptionGraphQLSchema.Builder.additionalTypes(Set<GraphQLType> additionalTypes) GraphQLSchema.Builder.build(Set<GraphQLType> additionalTypes) Deprecated.GraphQLSchema.Builder.build(Set<GraphQLType> additionalTypes, Set<GraphQLDirective> additionalDirectives) Deprecated.Constructors in graphql.schema with parameters of type GraphQLTypeModifierConstructorDescriptionGraphQLList(GraphQLType wrappedType) GraphQLNonNull(GraphQLType wrappedType) -
Uses of GraphQLType in graphql.schema.idl
Methods in graphql.schema.idl with type parameters of type GraphQLTypeModifier and TypeMethodDescription<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 with parameters of type GraphQLTypeModifier and TypeMethodDescription<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 typeSchemaPrinter.print(GraphQLType type) -
Uses of GraphQLType in graphql.validation
Methods in graphql.validation with parameters of type GraphQLTypeModifier and TypeMethodDescriptionprotected 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, Locale locale) -
Uses of GraphQLType in graphql.validation.rules
Methods in graphql.validation.rules that return GraphQLTypeModifier and TypeMethodDescriptionVariablesTypesMatcher.effectiveType(GraphQLType variableType, Value<?> defaultValue) Methods in graphql.validation.rules with parameters of type GraphQLTypeModifier and TypeMethodDescriptionbooleanVariablesTypesMatcher.doesVariableTypesMatch(GraphQLType varType, Value<?> varDefaultValue, GraphQLType locationType, Value<?> locationDefaultValue) This method and variable naming was inspired from the reference graphql-js implementationVariablesTypesMatcher.effectiveType(GraphQLType variableType, Value<?> defaultValue)
GraphQLSchema.Builder.additionalType(GraphQLType)methods