Uses of Class
graphql.schema.PropertyDataFetcher
-
Packages that use PropertyDataFetcher Package Description graphql.schema -
-
Uses of PropertyDataFetcher in graphql.schema
Methods in graphql.schema that return PropertyDataFetcher Modifier and Type Method Description static <T> PropertyDataFetcher<T>
PropertyDataFetcher. fetching(java.lang.String propertyName)
Returns a data fetcher that will use the property name to examine theDataFetchingEnvironment.getSource()
object for a getter method or field with that name, or if it's a map, it will look up a value using property name as a key.static <T,O>
PropertyDataFetcher<T>PropertyDataFetcher. fetching(java.util.function.Function<O,T> function)
Returns a data fetcher that will present theDataFetchingEnvironment.getSource()
object to the supplied function to obtain a value, which allows you to use Java 8 method references say obtain values in a more type safe way.
-