Class DataFetchersDelegateIFoo140Impl

java.lang.Object
org.allGraphQLCases.server.impl.DataFetchersDelegateIFoo140Impl
All Implemented Interfaces:
DataFetchersDelegateIFoo140

@Component
public class DataFetchersDelegateIFoo140Impl
extends Object
implements DataFetchersDelegateIFoo140
  • Constructor Details

  • Method Details

    • bar

      public IBar140 bar​(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, IFoo140 origin)
      Description copied from interface: DataFetchersDelegateIFoo140
      This method loads the data for IFoo140.bar.
      Specified by:
      bar in interface DataFetchersDelegateIFoo140
      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 bar attribute of the origin, which is an instance of {InterfaceType {name:IFoo140, fields:{Field{name:bar, type:IBar140, params:[]}}, comments ""}. It depends on your data modle, but it typically contains the id to use in the query.