public class GraphQlArgumentInitializer
extends java.lang.Object
DataFetchingEnvironment arguments.| Constructor and Description |
|---|
GraphQlArgumentInitializer(org.springframework.core.convert.ConversionService conversionService) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
initializeArgument(graphql.schema.DataFetchingEnvironment environment,
java.lang.String name,
org.springframework.core.ResolvableType targetType)
Initialize an Object of the given
targetType, either from a named
argument value, or from all
values as the source. |
public GraphQlArgumentInitializer(@Nullable
org.springframework.core.convert.ConversionService conversionService)
@Nullable
public java.lang.Object initializeArgument(graphql.schema.DataFetchingEnvironment environment,
@Nullable
java.lang.String name,
org.springframework.core.ResolvableType targetType)
targetType, either from a named
argument value, or from all
values as the source.environment - the environment with the argument valuesname - optionally, the name of an argument to initialize from,
or if null, the full map of arguments is used.targetType - the type of Object to initializenull