Package org.allGraphQLCases.server.impl
Class DataFetchersDelegatebreakImpl
java.lang.Object
org.allGraphQLCases.server.impl.DataFetchersDelegatebreakImpl
- All Implemented Interfaces:
DataFetchersDelegatebreak
@Component
public class DataFetchersDelegatebreakImpl
extends Object
implements DataFetchersDelegatebreak
Custom field data fetchers are available since release 2.5
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_case
(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, STP_break_STS origin, SEP_extends_SES test, String _if) Custom field data fetchers are available since release 2.5
-
Constructor Details
-
DataFetchersDelegatebreakImpl
public DataFetchersDelegatebreakImpl()
-
-
Method Details
-
_case
public SEP_extends_SES _case(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, STP_break_STS origin, SEP_extends_SES test, String _if) Custom field data fetchers are available since release 2.5- Specified by:
_case
in interfaceDataFetchersDelegatebreak
- 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.
-