Interface SelfDescribingDataFetcher<T>
- 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 TypeMethodDescriptionProvide 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.
-