T- the type of object returned
@PublicSpi public interface DataFetcher<T>
ExecutionResultIn other implementations, these are sometimes called "Resolvers" or "Field Resolvers", because that is there function, they resolve a logical graphql field into an actual data value.
T get(DataFetchingEnvironment environment)
DataFetchingEnvironmentis a composite context object that tells you all you need to know about who to fetch a data value in graphql type terms.
environment- this is the data fetching environment which contains all the context you need to fetch a value