public interface QueryDataFetchersDelegate
| Modifier and Type | Method and Description |
|---|---|
String |
hello(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment,
String name)
This method loads the data for Query.hello.
|
String hello(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, String name)
dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetchername - The input parameter sent in the query by the GraphQL consumerNoSuchElementException - This method may return a NoSuchElementException exception. In this case, the exception is trapped
by the calling method, and the return is consider as null. This allows to use the Optional.get() method directly, without caring of
wheter or not there is a value. The generated code will take care of the NoSuchElementException exception.Copyright © 2019. All rights reserved.