Class DataFetcherHandlerMethodSupport

java.lang.Object
org.springframework.graphql.data.method.HandlerMethod
org.springframework.graphql.data.method.InvocableHandlerMethodSupport
org.springframework.graphql.data.method.annotation.support.DataFetcherHandlerMethodSupport
Direct Known Subclasses:
DataFetcherHandlerMethod

public class DataFetcherHandlerMethodSupport extends InvocableHandlerMethodSupport
Extension of InvocableHandlerMethodSupport for handler methods that resolve argument values from a DataFetchingEnvironment.
Since:
1.3.0
Author:
Rossen Stoyanchev
  • Field Details

  • Constructor Details

  • Method Details

    • getResolvers

      Return the configured argument resolvers.
    • getMethodArgumentValues

      protected Object[] getMethodArgumentValues(graphql.schema.DataFetchingEnvironment environment, Object... providedArgs) throws Exception
      Get the method argument values for the current request, checking the provided argument values and falling back to the configured argument resolvers.
      Parameters:
      environment - the data fetching environment to resolve arguments from
      providedArgs - the arguments provided directly
      Throws:
      Exception