Interface SelfDescribingDataFetcher<T>

All Superinterfaces:
DataFetcher<T>

public interface SelfDescribingDataFetcher<T> extends DataFetcher<T>
Specialized DataFetcher that can provide information about itself.
Since:
1.2.0
Author:
Brian Clozel
  • Method Details

    • getReturnType

      ResolvableType getReturnType()
      The type that the DataFetcher returns.

      This could be a type from a @Controller method declaration or the type expected to be returned by the DataFetcher possibly backed by a Spring Data repository. The concrete type of the returned instance might be a subclass.

      Returns:
      the type of the data returned by the data fetcher.