Package org.allGraphQLCases.server.impl
Class DataFetchersDelegateIListImpl
java.lang.Object
org.allGraphQLCases.server.impl.DataFetchersDelegateIListImpl
- All Implemented Interfaces:
DataFetchersDelegateIList
@Component
public class DataFetchersDelegateIListImpl
extends Object
implements DataFetchersDelegateIList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlist
(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, SIP_IList_SIS origin) This method loads the data for IList.list.
-
Constructor Details
-
DataFetchersDelegateIListImpl
public DataFetchersDelegateIListImpl()
-
-
Method Details
-
list
public List<SIP_IFoo1_SIS> list(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, SIP_IList_SIS origin) Description copied from interface:DataFetchersDelegateIList
This method loads the data for IList.list.- Specified by:
list
in interfaceDataFetchersDelegateIList
- 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 list attribute of the origin, which is an instance of {InterfaceType {name:IList, fields:{Field{name:list, type:[IFoo1], params:[]}}, comments ""}. It depends on your data modle, but it typically contains the id to use in the query.
-