Interface SelfDescribingDataFetcher<T>

Type Parameters:
T - the type of data returned by the DataFetcher
All Superinterfaces:
DataFetcher<T>

public interface SelfDescribingDataFetcher<T> extends DataFetcher<T>
Specialized DataFetcher that exposes additional details such as return type information.
Since:
1.2.0
Author:
Brian Clozel, Rossen Stoyanchev
  • Method Details

    • getDescription

      String getDescription()
      Provide a description of the DataFetcher for display or logging purposes. Depending on the underlying implementation, this could be a controller method, a Spring Data repository backed DataFetcher, or other.
    • getReturnType

      ResolvableType getReturnType()
      The return type of this DataFetcher.

      This could be derived from the method signature of an annotated @Controller method, the domain type of a DataFetcher backed by a Spring Data repository, or other.

    • getArguments

      default Map<String,ResolvableType> getArguments()
      Return a map with arguments that this DataFetcher looks up along with the Java types they are mapped to.
      Since:
      1.3.0