Package org.allGraphQLCases.server.impl
Class DataFetchersDelegateTListImpl
java.lang.Object
org.allGraphQLCases.server.impl.DataFetchersDelegateTListImpl
- All Implemented Interfaces:
DataFetchersDelegateTList
@Component
public class DataFetchersDelegateTListImpl
extends Object
implements DataFetchersDelegateTList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlist
(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, STP_TList_STS origin) This method loads the data for TList.list.
-
Constructor Details
-
DataFetchersDelegateTListImpl
public DataFetchersDelegateTListImpl()
-
-
Method Details
-
list
public List<STP_TFoo1_STS> list(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, STP_TList_STS origin) Description copied from interface:DataFetchersDelegateTList
This method loads the data for TList.list.- Specified by:
list
in interfaceDataFetchersDelegateTList
- 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 {ObjectType {name:TList, fields:{Field{name:list, type:[TFoo1], params:[]}}, implements IList, comments ""}. It depends on your data modle, but it typically contains the id to use in the query.
-