Class SourceMethodArgumentResolver

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

public class SourceMethodArgumentResolver extends Object implements HandlerMethodArgumentResolver
Resolver for the source/parent of a field, obtained via DataFetchingEnvironment.getSource().

This resolver supports any type excluding enums, dates, arrays, wide range of types, including any non-simple type, along with any CharSequence, or Number. Hence, it must come last in the order or resolvers, as a fallback after all others.

Since:
1.0.0
Author:
Rossen Stoyanchev