@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 |
---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirective, getDirectivesByName
public 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 GraphQLDirectiveContainer
public static GraphQLInputObjectField.Builder newInputObjectField()