@PublicApi public class GraphQLInputObjectField extends java.lang.Object implements GraphQLDirectiveContainer
GraphQLInputObjectType contains these input fields.
There are similar to GraphQLFieldDefinition however they can ONLY be used on input objects, that
is to describe values that are fed into a graphql mutation.
See http://graphql.org/learn/schema/#input-types for more details on the concept.| Modifier and Type | Class and Description |
|---|---|
static class |
GraphQLInputObjectField.Builder |
| Constructor and Description |
|---|
GraphQLInputObjectField(java.lang.String name,
GraphQLInputType type) |
GraphQLInputObjectField(java.lang.String name,
java.lang.String description,
GraphQLInputType type,
java.lang.Object defaultValue) |
GraphQLInputObjectField(java.lang.String name,
java.lang.String description,
GraphQLInputType type,
java.lang.Object defaultValue,
java.util.List<GraphQLDirective> directives,
InputValueDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
TraversalControl |
accept(TraverserContext<GraphQLType> context,
GraphQLTypeVisitor visitor)
Double-dispatch entry point.
|
java.util.List<GraphQLType> |
getChildren() |
java.lang.Object |
getDefaultValue() |
InputValueDefinition |
getDefinition() |
java.lang.String |
getDescription() |
java.util.List<GraphQLDirective> |
getDirectives() |
java.lang.String |
getName() |
GraphQLInputType |
getType() |
static GraphQLInputObjectField.Builder |
newInputObjectField() |
static GraphQLInputObjectField.Builder |
newInputObjectField(GraphQLInputObjectField existing) |
GraphQLInputObjectField |
transform(java.util.function.Consumer<GraphQLInputObjectField.Builder> builderConsumer)
This helps you transform the current GraphQLInputObjectField into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDirective, getDirectivesByNamepublic GraphQLInputObjectField(java.lang.String name,
GraphQLInputType type)
public GraphQLInputObjectField(java.lang.String name,
java.lang.String description,
GraphQLInputType type,
java.lang.Object defaultValue)
public GraphQLInputObjectField(java.lang.String name,
java.lang.String description,
GraphQLInputType type,
java.lang.Object defaultValue,
java.util.List<GraphQLDirective> directives,
InputValueDefinition definition)
public java.lang.String getName()
getName in interface GraphQLType[_A-Za-z][_0-9A-Za-z]*public GraphQLInputType getType()
public java.lang.Object getDefaultValue()
public java.lang.String getDescription()
public InputValueDefinition getDefinition()
public java.util.List<GraphQLDirective> getDirectives()
getDirectives in interface GraphQLDirectiveContainerpublic GraphQLInputObjectField transform(java.util.function.Consumer<GraphQLInputObjectField.Builder> builderConsumer)
builderConsumer - the consumer code that will be given a builder to transformpublic TraversalControl accept(TraverserContext<GraphQLType> context, GraphQLTypeVisitor visitor)
GraphQLTypeNode, see accept(...) for more details about the pattern.accept in interface GraphQLTypecontext - TraverserContext bound to this graphQL type objectvisitor - Visitor instance that performs actual processing on the types(s)public java.util.List<GraphQLType> getChildren()
getChildren in interface GraphQLTypepublic static GraphQLInputObjectField.Builder newInputObjectField(GraphQLInputObjectField existing)
public static GraphQLInputObjectField.Builder newInputObjectField()