@PublicApi public class GraphQLArgument extends java.lang.Object
GraphQLFieldDefinition
.
Fields can be thought of as "functions" that take arguments and return a value.
See http://graphql.org/learn/queries/#arguments for more details on the concept.Modifier and Type | Class and Description |
---|---|
static class |
GraphQLArgument.Builder |
Constructor and Description |
---|
GraphQLArgument(java.lang.String name,
GraphQLInputType type) |
GraphQLArgument(java.lang.String name,
java.lang.String description,
GraphQLInputType type,
java.lang.Object defaultValue) |
GraphQLArgument(java.lang.String name,
java.lang.String description,
GraphQLInputType type,
java.lang.Object defaultValue,
InputValueDefinition definition) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultValue() |
InputValueDefinition |
getDefinition() |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
GraphQLInputType |
getType() |
static GraphQLArgument.Builder |
newArgument() |
public GraphQLArgument(java.lang.String name, java.lang.String description, GraphQLInputType type, java.lang.Object defaultValue)
public GraphQLArgument(java.lang.String name, GraphQLInputType type)
public GraphQLArgument(java.lang.String name, java.lang.String description, GraphQLInputType type, java.lang.Object defaultValue, InputValueDefinition definition)
public java.lang.String getName()
public GraphQLInputType getType()
public java.lang.Object getDefaultValue()
public java.lang.String getDescription()
public InputValueDefinition getDefinition()
public static GraphQLArgument.Builder newArgument()