Package org.allGraphQLCases.server
Interface DataFetchersDelegatebreak
- All Known Implementing Classes:
DataFetchersDelegatebreakImpl
public interface DataFetchersDelegatebreak
This interface contains the fata fetchers that are delegated in the bean that the implementation has to provide, when
fetching fields for the break GraphQL type, as defined in the provided GraphQL schema. Please read the
wiki server page
for more information on this.
- Author:
- generated by graphql-java-generator
- See Also:
-
Method Summary
Modifier and TypeMethodDescription_case
(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, STP_break_STS origin, SEP_extends_SES test, String _if) This method loads the data for break.case.
-
Method Details
-
_case
SEP_extends_SES _case(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, STP_break_STS origin, SEP_extends_SES test, String _if) This method loads the data for break.case.- Parameters:
dataFetchingEnvironment
- The GraphQLDataFetchingEnvironment
. It gives you access to the full GraphQL context for this DataFetcherorigin
- The object from which the field is fetch. In other word: the aim of this data fetcher is to fetch the case attribute of the origin, which is an instance of {ObjectType {name:break, fields:{Field{name:case, type:extends, params:[test:extends!,if:else]}}, comments ""}. It depends on your data modle, but it typically contains the id to use in the query.test
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.if
- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.- Throws:
NoSuchElementException
- This method may return aNoSuchElementException
exception. In this case, the exception is trapped by the calling method, and the return is consider as null. This allows to use theOptional.get()
method directly, without caring of whether or not there is a value. The generated code will take care of theNoSuchElementException
exception.
-