Class PostController

java.lang.Object
org.forum.server.graphql.util.PostController

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

  • Constructor Details

    • PostController

      public PostController(org.springframework.graphql.execution.BatchLoaderRegistry registry)
  • Method Details

    • author

      @BatchMapping(field="author") public reactor.core.publisher.Flux<Member> author(org.dataloader.BatchLoaderEnvironment batchLoaderEnvironment, graphql.GraphQLContext graphQLContext, List<Post> keys)
      This methods loads the data for ${dataFetcher.graphQLType}.author. 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 author 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