Class ArgumentMethodArgumentResolver

java.lang.Object
org.springframework.graphql.data.method.annotation.support.ArgumentMethodArgumentResolver
All Implemented Interfaces:
HandlerMethodArgumentResolver

public class ArgumentMethodArgumentResolver extends Object implements HandlerMethodArgumentResolver
Resolver for a method parameter that is annotated with @Argument. The specified raw argument value is obtained via DataFetchingEnvironment.getArgument(String) and bound to a higher level object via GraphQlArgumentBinder to match the target method parameter type.

This resolver also supports wrapping the target object with ArgumentValue if the application wants to differentiate between an input argument that was set to null vs not provided at all. When this wrapper type is used, the annotation is optional, and the name of the argument is derived from the method parameter name.

An ArgumentValue can also be nested within the object structure of an @Argument-annotated method parameter.

Since:
1.0.0
Author:
Rossen Stoyanchev, Brian Clozel
See Also: