Package | Description |
---|---|
graphql.schema |
Modifier and Type | Method and Description |
---|---|
static <T,O> PropertyDataFetcher<T> |
PropertyDataFetcher.fetching(Function<O,T> function)
Returns a data fetcher that will present the
DataFetchingEnvironment.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. |
static <T> PropertyDataFetcher<T> |
PropertyDataFetcher.fetching(String propertyName)
Returns a data fetcher that will use the property name to examine the
DataFetchingEnvironment.getSource() object
for a getter method or field with that name, or if its a map, it will look up a value using
property name as a key. |
Copyright © 2019. All rights reserved.