Class CommentedController
java.lang.Object
org.junittest.allgraphqlcases_server_springconfiguration_util_batchmapping_monomap.util.CommentedController
- Author:
- generated by graphql-java-generator
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataFetchersDelegateCommented
protected com.graphql_java_generator.server.util.GraphqlServerUtils
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
dataFetchersDelegateCommented
-
graphqlServerUtils
@Autowired protected com.graphql_java_generator.server.util.GraphqlServerUtils graphqlServerUtils
-
-
Constructor Details
-
CommentedController
public CommentedController()
-
-
Method Details
-
comments
@BatchMapping(field="comments") public reactor.core.publisher.Mono<Map<Commented,String>> comments(org.dataloader.BatchLoaderEnvironment batchLoaderEnvironment, graphql.GraphQLContext graphQLContext, List<Commented> keys) This methods loads the data for ${dataFetcher.graphQLType}.comments. 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 comments 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
-