Interface FieldAndArguments
- All Known Implementing Classes:
FieldValidationSupport.FieldAndArgumentsImpl
This represents a field and its arguments that may be validated.
-
Method Summary
Modifier and TypeMethodDescription<T> TgetArgumentValue(String argumentName) This will return the named field argument value and cast it to the desired type.This will be a map of argument names to argument values.getField()getPath()
-
Method Details
-
getField
Field getField()- Returns:
- the field in play
-
getFieldDefinition
GraphQLFieldDefinition getFieldDefinition()- Returns:
- the runtime type definition of the field
-
getParentType
GraphQLCompositeType getParentType()- Returns:
- the containing type of the field
-
getParentFieldAndArguments
FieldAndArguments getParentFieldAndArguments()- Returns:
- the parent arguments or null if there is no parent
-
getPath
ResultPath getPath()- Returns:
- the path to this field
-
getArgumentValuesByName
-
getArgumentValue
This will return the named field argument value and cast it to the desired type.- Type Parameters:
T- the type of the underlying value object- Parameters:
argumentName- the name of the argument- Returns:
- a cast object of type T
-