Package | Description |
---|---|
graphql | |
graphql.execution | |
graphql.language | |
graphql.schema | |
graphql.schema.idl | |
graphql.schema.validation | |
graphql.validation | |
graphql.validation.rules |
Modifier and Type | Method and Description |
---|---|
GraphQLType |
TypeResolutionEnvironment.getFieldType() |
Constructor and Description |
---|
TypeMismatchError(ExecutionPath path,
GraphQLType expectedType) |
TypeResolutionEnvironment(Object object,
Map<String,Object> arguments,
MergedField field,
GraphQLType fieldType,
GraphQLSchema schema,
Object context) |
Modifier and Type | Method and Description |
---|---|
static GraphQLType |
TypeFromAST.getTypeFromAST(GraphQLSchema schema,
Type type) |
Modifier and Type | Method and Description |
---|---|
protected GraphQLObjectType |
ExecutionStrategy.resolveType(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
GraphQLType fieldType) |
GraphQLObjectType |
ResolveType.resolveType(ExecutionContext executionContext,
MergedField field,
Object source,
Map<String,Object> arguments,
GraphQLType fieldType) |
Constructor and Description |
---|
InputMapDefinesTooManyFieldsException(GraphQLType graphQLType,
String fieldName) |
NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition,
GraphQLType graphQLType) |
NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition,
String fieldName,
GraphQLType graphQLType) |
UnresolvedTypeException(GraphQLOutputType interfaceOrUnionType,
GraphQLType providedType) |
Modifier and Type | Method and Description |
---|---|
static Value |
AstValueHelper.astFromValue(Object value,
GraphQLType type)
Produces a GraphQL Value AST given a Java value.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GraphQLCompositeType |
interface |
GraphQLDirectiveContainer
Represents a graphql object that can have
GraphQLDirective s |
interface |
GraphQLFieldsContainer
Types that can contain output fields are marked with this interface
|
interface |
GraphQLInputFieldsContainer
Types that can contain input fields are marked with this interface
|
interface |
GraphQLInputType
Input types represent those set of types that are allowed to be accepted as graphql mutation input, as opposed
to
GraphQLOutputType s which can only be used as graphql response output. |
interface |
GraphQLModifiedType
A modified type wraps another graphql type and modifies it behavior
|
interface |
GraphQLNullableType |
interface |
GraphQLOutputType
Output types represent those set of types that are allowed to be sent back as a graphql response, as opposed
to
GraphQLInputType s which can only be used as graphql mutation input. |
interface |
GraphQLUnmodifiedType |
Modifier and Type | Class and Description |
---|---|
class |
GraphQLArgument
This defines an argument that can be supplied to a graphql field (via
GraphQLFieldDefinition . |
class |
GraphQLDirective
A directive can be used to modify the behavior of a graphql field or type.
|
class |
GraphQLEnumType
A graphql enumeration type has a limited set of values.
|
class |
GraphQLEnumValueDefinition
A graphql enumeration type has a limited set of values and this defines one of those unique values
See http://graphql.org/learn/schema/#enumeration-types for more details
|
class |
GraphQLFieldDefinition
Fields are the ways you get data values in graphql and a field definition represents a field, its type, the arguments it takes
and the
DataFetcher used to get data values for that field. |
class |
GraphQLInputObjectField
Input objects defined via
GraphQLInputObjectType contains these input fields. |
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.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,GraphQLType> |
GraphQLTypeResolvingVisitor.typeMap |
Modifier and Type | Method and Description |
---|---|
static <T extends GraphQLType> |
GraphqlTypeComparators.graphQLTypeComparator()
Returns a comparator that compares
GraphQLType objects by ascending name |
static <T extends GraphQLType> |
GraphqlTypeComparators.sortGraphQLTypes(Collection<T> types)
This sorts the list of
GraphQLType objects (by name) and allocates a new sorted
list back. |
Modifier and Type | Method and Description |
---|---|
GraphQLType |
GraphqlElementParentTree.getElement()
Returns the element represented by this info
|
GraphQLType |
DataFetchingEnvironmentImpl.getParentType() |
GraphQLType |
DataFetchingEnvironment.getParentType() |
GraphQLType |
GraphQLSchema.getType(String typeName) |
GraphQLType |
GraphQLNonNull.getWrappedType() |
GraphQLType |
GraphQLModifiedType.getWrappedType() |
GraphQLType |
GraphQLList.getWrappedType() |
static GraphQLType |
GraphQLTypeUtil.unwrapNonNull(GraphQLType type) |
static GraphQLType |
GraphQLTypeUtil.unwrapOne(GraphQLType type)
Unwraps one layer of the type or just returns the type again if its not a wrapped type
|
Modifier and Type | Method and Description |
---|---|
Set<GraphQLType> |
GraphQLSchema.getAdditionalTypes() |
List<GraphQLType> |
GraphQLSchema.getAllTypesAsList() |
List<GraphQLType> |
GraphQLUnionType.getChildren() |
default List<GraphQLType> |
GraphQLType.getChildren() |
List<GraphQLType> |
GraphQLScalarType.getChildren() |
List<GraphQLType> |
GraphQLObjectType.getChildren() |
List<GraphQLType> |
GraphQLNonNull.getChildren() |
List<GraphQLType> |
GraphQLList.getChildren() |
List<GraphQLType> |
GraphQLInterfaceType.getChildren() |
List<GraphQLType> |
GraphQLInputObjectType.getChildren() |
List<GraphQLType> |
GraphQLInputObjectField.getChildren() |
List<GraphQLType> |
GraphQLFieldDefinition.getChildren() |
List<GraphQLType> |
GraphQLEnumValueDefinition.getChildren() |
List<GraphQLType> |
GraphQLEnumType.getChildren() |
List<GraphQLType> |
GraphQLDirective.getChildren() |
List<GraphQLType> |
GraphQLArgument.getChildren() |
Map<String,GraphQLType> |
GraphQLTypeCollectingVisitor.getResult() |
Map<String,GraphQLType> |
GraphQLSchema.getTypeMap() |
static <T extends GraphQLType> |
GraphqlTypeComparators.graphQLTypeComparator()
Returns a comparator that compares
GraphQLType objects by ascending name |
List<GraphQLType> |
GraphqlElementParentTree.toList() |
static Stack<GraphQLType> |
GraphQLTypeUtil.unwrapType(GraphQLType type)
graphql types can be wrapped in
GraphQLNonNull and GraphQLList 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. |
Modifier and Type | Method and Description |
---|---|
GraphQLSchema.Builder |
GraphQLSchema.Builder.additionalType(GraphQLType additionalType) |
TraverserResult |
TypeTraverser.depthFirst(GraphQLTypeVisitor graphQLTypeVisitor,
GraphQLType root) |
static boolean |
GraphQLTypeUtil.isEnum(GraphQLType type)
Returns true if the given type is an enum type
|
static boolean |
GraphQLTypeUtil.isInput(GraphQLType type)
Returns true if the given type is an input type
|
static boolean |
GraphQLTypeUtil.isLeaf(GraphQLType type)
Returns true if the given type is a leaf type, that it cant contain any more fields
|
static boolean |
GraphQLTypeUtil.isList(GraphQLType type)
Returns true if the given type is a list type
|
static boolean |
GraphQLTypeUtil.isNonNull(GraphQLType type)
Returns true if the given type is a non null type
|
static boolean |
GraphQLTypeUtil.isNotWrapped(GraphQLType type)
Returns true if the given type is NOT a non null or list type
|
static boolean |
GraphQLTypeUtil.isNullable(GraphQLType type)
Returns true if the given type is a nullable type
|
boolean |
GraphQLSchema.isPossibleType(GraphQLType abstractType,
GraphQLObjectType concreteType)
Returns true if a specified concrete type is a possible type of a provided abstract type.
|
static boolean |
GraphQLTypeUtil.isScalar(GraphQLType type)
Returns true if the given type is a scalar type
|
static boolean |
GraphQLTypeUtil.isWrapped(GraphQLType type)
Returns true if the given type is a non null or list type, that is a wrapped type
|
static 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 DataFetchingFieldSelectionSet |
DataFetchingFieldSelectionSetImpl.newCollector(ExecutionContext executionContext,
GraphQLType fieldType,
MergedField mergedField) |
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) |
static 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 its not a wrapped type
|
static GraphQLType |
GraphQLTypeUtil.unwrapNonNull(GraphQLType type) |
static GraphQLType |
GraphQLTypeUtil.unwrapOne(GraphQLType type)
Unwraps one layer of the type or just returns the type again if its not a wrapped type
|
static Stack<GraphQLType> |
GraphQLTypeUtil.unwrapType(GraphQLType type)
graphql types can be wrapped in
GraphQLNonNull and GraphQLList 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. |
protected TraversalControl |
GraphQLTypeVisitorStub.visitGraphQLType(GraphQLType node,
TraverserContext<GraphQLType> context) |
Constructor and Description |
---|
GraphQLList(GraphQLType wrappedType) |
GraphQLNonNull(GraphQLType wrappedType) |
Constructor and Description |
---|
GraphqlElementParentTree(Deque<GraphQLType> nodeStack) |
GraphQLSchema(GraphQLObjectType queryType,
GraphQLObjectType mutationType,
GraphQLObjectType subscriptionType,
Set<GraphQLType> additionalTypes)
Deprecated.
use the
GraphQLSchema.newSchema() builder pattern instead, as this constructor will be made private in a future version. |
GraphQLSchema(GraphQLObjectType queryType,
GraphQLObjectType mutationType,
Set<GraphQLType> additionalTypes)
Deprecated.
use the
GraphQLSchema.newSchema() builder pattern instead, as this constructor will be made private in a future version. |
GraphQLTypeResolvingVisitor(Map<String,GraphQLType> typeMap) |
TypeTraverser(Function<? super GraphQLType,? extends List<GraphQLType>> getChildren) |
TypeTraverser(Function<? super GraphQLType,? extends List<GraphQLType>> getChildren) |
Modifier and Type | Field and Description |
---|---|
static Comparator<GraphQLType> |
DefaultSchemaPrinterComparatorRegistry.DEFAULT_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
<T extends GraphQLType> |
DefaultSchemaPrinterComparatorRegistry.Builder.addComparator(SchemaPrinterComparatorEnvironment environment,
Class<T> comparatorClass,
Comparator<? super T> comparator)
Registers a
Comparator with an environment to control its permitted scope of operation. |
<T extends GraphQLType> |
DefaultSchemaPrinterComparatorRegistry.Builder.addComparator(UnaryOperator<SchemaPrinterComparatorEnvironment.Builder> builderFunction,
Class<T> comparatorClass,
Comparator<? super T> comparator)
Convenience method which supplies an environment builder function.
|
<T extends GraphQLType> |
TypeInfo.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 type
|
<T extends GraphQLType> |
SchemaPrinterComparatorEnvironment.Builder.elementType(Class<T> elementType) |
<T extends GraphQLType> |
SchemaPrinterComparatorRegistry.getComparator(SchemaPrinterComparatorEnvironment environment) |
<T extends GraphQLType> |
DefaultSchemaPrinterComparatorRegistry.getComparator(SchemaPrinterComparatorEnvironment environment)
Search for the most to least specific registered
Comparator otherwise a default is returned. |
<T extends GraphQLType> |
SchemaPrinterComparatorEnvironment.Builder.parentType(Class<T> parentType) |
Modifier and Type | Method and Description |
---|---|
Class<? extends GraphQLType> |
SchemaPrinterComparatorEnvironment.getElementType() |
Class<? extends GraphQLType> |
SchemaPrinterComparatorEnvironment.getParentType() |
Modifier and Type | Method and Description |
---|---|
Object |
SchemaGeneratorHelper.buildValue(Value value,
GraphQLType requiredType) |
<T extends GraphQLType> |
TypeInfo.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 type
|
String |
SchemaPrinter.print(GraphQLType type) |
Modifier and Type | Method and Description |
---|---|
void |
SchemaValidationRule.check(GraphQLType type,
SchemaValidationErrorCollector validationErrorCollector) |
void |
ObjectsImplementInterfaces.check(GraphQLType type,
SchemaValidationErrorCollector validationErrorCollector) |
void |
NoUnbrokenInputCycles.check(GraphQLType type,
SchemaValidationErrorCollector validationErrorCollector) |
Modifier and Type | Method and Description |
---|---|
protected void |
ValidationUtil.handleFieldNotValidError(Value value,
GraphQLType type,
int index) |
protected void |
ArgumentValidationUtil.handleFieldNotValidError(Value value,
GraphQLType type,
int index) |
protected void |
ValidationUtil.handleNullError(Value value,
GraphQLType type) |
protected void |
ArgumentValidationUtil.handleNullError(Value value,
GraphQLType type) |
boolean |
ValidationUtil.isValidLiteralValue(Value value,
GraphQLType type,
GraphQLSchema schema) |
Modifier and Type | Method and Description |
---|---|
GraphQLType |
VariablesTypesMatcher.effectiveType(GraphQLType variableType,
Value defaultValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
VariablesTypesMatcher.doesVariableTypesMatch(GraphQLType variableType,
Value variableDefaultValue,
GraphQLType expectedType) |
GraphQLType |
VariablesTypesMatcher.effectiveType(GraphQLType variableType,
Value defaultValue) |
Copyright © 2019. All rights reserved.