@PublicApi public class ArgumentConversions extends java.lang.Object implements ArgumentConverter
ArgumentConverters keyed by input type name allowing you to register a
series of argument converters and then place it into the conversion mix via
GraphQLCodeRegistry.Builder.argumentConverter(ArgumentConverter).
If the input type matches the specified name, then its argument converter will be called otherwise the source object will be
return as is.| Modifier and Type | Class and Description |
|---|---|
static class |
ArgumentConversions.Builder |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertArgument(ArgumentConverterEnvironment environment)
This is called with the object to convert and extra type information about tbe argument being converted.
|
static ArgumentConversions.Builder |
newConversions() |
public java.lang.Object convertArgument(ArgumentConverterEnvironment environment)
ArgumentConverterArgumentConverterEnvironment.getValueToBeConverted()
so another converter in the chain may have a go.convertArgument in interface ArgumentConverterenvironment - the conversion environmentArgumentConverterEnvironment.getValueToBeConverted() if you don't want to convert itpublic static ArgumentConversions.Builder newConversions()