Interface SelfDescribingDataFetcher<T>
- Type Parameters:
T
- the type of data returned by theDataFetcher
- All Superinterfaces:
DataFetcher<T>
Specialized
DataFetcher
that exposes additional details such as
return type information.- Since:
- 1.2.0
- Author:
- Brian Clozel, Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<String,
ResolvableType> Return a map with arguments that thisDataFetcher
looks up along with the Java types they are mapped to.Provide a description of theDataFetcher
for display or logging purposes.The return type of thisDataFetcher
.Methods inherited from interface graphql.schema.DataFetcher
get
-
Method Details
-
getDescription
String getDescription()Provide a description of theDataFetcher
for display or logging purposes. Depending on the underlying implementation, this could be a controller method, a Spring Data repository backedDataFetcher
, or other. -
getReturnType
ResolvableType getReturnType()The return type of thisDataFetcher
.This could be derived from the method signature of an annotated
@Controller
method, the domain type of aDataFetcher
backed by a Spring Data repository, or other. -
getArguments
Return a map with arguments that thisDataFetcher
looks up along with the Java types they are mapped to.- Since:
- 1.3.0
-