Class DataFetchersDelegateIListImpl

java.lang.Object
org.allGraphQLCases.server.impl.DataFetchersDelegateIListImpl
All Implemented Interfaces:
DataFetchersDelegateIList

@Component
public class DataFetchersDelegateIListImpl
extends Object
implements DataFetchersDelegateIList
  • Constructor Details

  • Method Details

    • list

      public List<IFoo1> list​(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, IList origin)
      Description copied from interface: DataFetchersDelegateIList
      This method loads the data for IList.list.
      Specified by:
      list in interface DataFetchersDelegateIList
      Parameters:
      dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
      origin - 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.