@PublicApi public class PropertyDataFetcher<T> extends java.lang.Object implements DataFetcher<T>
DataFetcher
Constructor and Description |
---|
PropertyDataFetcher(java.lang.String propertyName) |
Modifier and Type | Method and Description |
---|---|
T |
get(DataFetchingEnvironment environment)
This is called by the graphql engine to fetch the value.
|
public T get(DataFetchingEnvironment environment)
DataFetcher
DataFetchingEnvironment
is a composite
context object that tells you all you need to know about who to fetch a data value in graphql type terms.get
in interface DataFetcher<T>
environment
- this is the data fetching environment which contains all the context you need to fetch a value