Package | Description |
---|---|
graphql.analysis | |
graphql.execution | |
graphql.relay | |
graphql.schema | |
graphql.schema.idl | |
graphql.validation |
Modifier and Type | Method and Description |
---|---|
GraphQLOutputType |
QueryVisitorFieldEnvironmentImpl.getParentType() |
GraphQLOutputType |
QueryVisitorFieldEnvironment.getParentType() |
Constructor and Description |
---|
QueryVisitorFieldEnvironmentImpl(boolean typeNameIntrospectionField,
Field field,
GraphQLFieldDefinition fieldDefinition,
GraphQLOutputType parentType,
GraphQLFieldsContainer unmodifiedParentType,
QueryVisitorFieldEnvironment parentEnvironment,
Map<String,Object> arguments,
SelectionSetContainer selectionSetContainer,
TraverserContext<Node> traverserContext) |
Modifier and Type | Method and Description |
---|---|
GraphQLOutputType |
UnresolvedTypeException.getInterfaceOrUnionType() |
GraphQLOutputType |
ExecutionStepInfo.getType()
This returns the type for the current step.
|
GraphQLOutputType |
ExecutionStepInfo.getUnwrappedNonNullType()
This returns the type which is unwrapped if it was
GraphQLNonNull wrapped |
Modifier and Type | Method and Description |
---|---|
ExecutionStepInfo |
ExecutionStepInfo.changeTypeWithPreservedNonNull(GraphQLOutputType newType)
This allows you to morph a type into a more specialized form yet return the same
parent and non-null ness, for example taking a
GraphQLInterfaceType
and turning it into a specific GraphQLObjectType
after type resolution has occurred |
ExecutionStepInfo.Builder |
ExecutionStepInfo.Builder.type(GraphQLOutputType type) |
Constructor and Description |
---|
UnresolvedTypeException(GraphQLOutputType interfaceOrUnionType) |
UnresolvedTypeException(GraphQLOutputType interfaceOrUnionType,
GraphQLType providedType) |
UnresolvedTypeException(String message,
GraphQLOutputType interfaceOrUnionType)
Constructor to use a custom error message
for an error that happened during type resolution.
|
Modifier and Type | Method and Description |
---|---|
GraphQLObjectType |
Relay.edgeType(String name,
GraphQLOutputType nodeType,
GraphQLInterfaceType nodeInterface,
List<GraphQLFieldDefinition> edgeFields) |
Modifier and Type | Interface and Description |
---|---|
interface |
GraphQLCompositeType |
interface |
GraphQLFieldsContainer
Types that can contain output fields are marked with this interface
|
Modifier and Type | Class and Description |
---|---|
class |
GraphQLEnumType
A graphql enumeration type has a limited set of values.
|
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 | Method and Description |
---|---|
GraphQLOutputType |
DataFetchingEnvironmentImpl.getFieldType() |
GraphQLOutputType |
DataFetchingEnvironment.getFieldType() |
GraphQLOutputType |
GraphQLFieldDefinition.getType() |
Modifier and Type | Method and Description |
---|---|
List<GraphQLOutputType> |
GraphQLObjectType.getInterfaces() |
List<GraphQLOutputType> |
GraphQLUnionType.getTypes() |
Modifier and Type | Method and Description |
---|---|
DataFetchingEnvironmentImpl.Builder |
DataFetchingEnvironmentImpl.Builder.fieldType(GraphQLOutputType fieldType) |
GraphQLFieldDefinition.Builder |
GraphQLFieldDefinition.Builder.type(GraphQLOutputType type) |
default TraversalControl |
GraphQLTypeVisitor.visitGraphQLOutputType(GraphQLOutputType node,
TraverserContext<GraphQLType> context) |
Constructor and Description |
---|
GraphQLFieldDefinition(String name,
String description,
GraphQLOutputType type,
DataFetcher<?> dataFetcher,
List<GraphQLArgument> arguments,
String deprecationReason)
Deprecated.
use the
GraphQLFieldDefinition.newFieldDefinition() builder pattern instead, as this constructor will be made private in a future version. |
GraphQLFieldDefinition(String name,
String description,
GraphQLOutputType type,
DataFetcherFactory dataFetcherFactory,
List<GraphQLArgument> arguments,
String deprecationReason,
List<GraphQLDirective> directives,
FieldDefinition definition)
Deprecated.
use the
GraphQLFieldDefinition.newFieldDefinition() builder pattern instead, as this constructor will be made private in a future version. |
Constructor and Description |
---|
GraphQLObjectType(String name,
String description,
List<GraphQLFieldDefinition> fieldDefinitions,
List<GraphQLOutputType> interfaces)
Deprecated.
use the
GraphQLObjectType.newObject() builder pattern instead, as this constructor will be made private in a future version. |
GraphQLObjectType(String name,
String description,
List<GraphQLFieldDefinition> fieldDefinitions,
List<GraphQLOutputType> interfaces,
List<GraphQLDirective> directives,
ObjectTypeDefinition definition)
Deprecated.
use the
GraphQLObjectType.newObject() builder pattern instead, as this constructor will be made private in a future version. |
GraphQLUnionType(String name,
String description,
List<GraphQLOutputType> types,
TypeResolver typeResolver)
Deprecated.
use the
GraphQLUnionType.newUnionType() builder pattern instead, as this constructor will be made private in a future version. |
GraphQLUnionType(String name,
String description,
List<GraphQLOutputType> types,
TypeResolver typeResolver,
List<GraphQLDirective> directives,
UnionTypeDefinition definition)
Deprecated.
use the
GraphQLUnionType.newUnionType() builder pattern instead, as this constructor will be made private in a future version. |
Modifier and Type | Method and Description |
---|---|
GraphQLOutputType |
FieldWiringEnvironment.getFieldType() |
Modifier and Type | Method and Description |
---|---|
GraphQLOutputType |
ValidationContext.getOutputType() |
GraphQLOutputType |
TraversalContext.getOutputType() |
Copyright © 2019. All rights reserved.