java.lang.Object
org.junittest.allgraphqlcases_server_springconfiguration_util_batchmapping_collection.util.Foo140Controller

@Controller @SchemaMapping(typeName="Foo140") public class Foo140Controller extends Object
Author:
generated by graphql-java-generator
See Also:
  • Field Details

    • dataFetchersDelegateFoo140

      @Autowired protected DataFetchersDelegateFoo140 dataFetchersDelegateFoo140
    • graphqlServerUtils

      @Autowired protected com.graphql_java_generator.server.util.GraphqlServerUtils graphqlServerUtils
  • Constructor Details

    • Foo140Controller

      public Foo140Controller()
  • Method Details

    • bar

      @BatchMapping(field="bar") public Collection<Bar140> bar(org.dataloader.BatchLoaderEnvironment batchLoaderEnvironment, graphql.GraphQLContext graphQLContext, List<Foo140> keys)
      This methods loads the data for ${dataFetcher.graphQLType}.bar. It is generated as the generateBatchMappingDataFetchers plugin parameter is true.
      Parameters:
      batchLoaderEnvironment - The environement for this batch loaded. You can extract the GraphQLContext from this parameter.
      graphQLContext -
      keys - The objects for which the value for the bar field must be retrieved.
      Returns:
      This method returns ${dataFetcher.batchMappingReturnType.value}, as defined by the batchMappingDataFetcherReturnType plugin parameter.
      Please look at the spring-graphql annotation for a documentation on how to return the proper values