Package org.forum.server.graphql.util
Class PostController
java.lang.Object
org.forum.server.graphql.util.PostController
- Author:
- generated by graphql-java-generator
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPostController
(org.springframework.graphql.execution.BatchLoaderRegistry registry) -
Method Summary
-
Field Details
-
dataFetchersDelegatePost
-
graphqlServerUtils
-
-
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 thegenerateBatchMappingDataFetchers
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 thebatchMappingDataFetcherReturnType
plugin parameter.
Please look at the spring-graphql annotation for a documentation on how to return the proper values
-