Class AllFieldCasesWithIdSubtypeController
java.lang.Object
org.junittest.allgraphqlcases_server_springconfiguration_util_batchmapping_monomap.util.AllFieldCasesWithIdSubtypeController
@Controller
@SchemaMapping(typeName="AllFieldCasesWithIdSubtype")
public class AllFieldCasesWithIdSubtypeController
extends Object
- Author:
- generated by graphql-java-generator
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.graphql_java_generator.server.util.GraphqlServerUtils -
Constructor Summary
ConstructorsConstructorDescriptionAllFieldCasesWithIdSubtypeController(org.springframework.graphql.execution.BatchLoaderRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Map<AllFieldCasesWithIdSubtype,Date>> dates(org.dataloader.BatchLoaderEnvironment batchLoaderEnvironment, graphql.GraphQLContext graphQLContext, List<AllFieldCasesWithIdSubtype> keys) This methods loads the data for ${dataFetcher.graphQLType}.dates.
-
Field Details
-
dataFetchersDelegateAllFieldCasesWithIdSubtype
@Autowired protected DataFetchersDelegateAllFieldCasesWithIdSubtype dataFetchersDelegateAllFieldCasesWithIdSubtype -
graphqlServerUtils
@Autowired protected com.graphql_java_generator.server.util.GraphqlServerUtils graphqlServerUtils
-
-
Constructor Details
-
AllFieldCasesWithIdSubtypeController
public AllFieldCasesWithIdSubtypeController(org.springframework.graphql.execution.BatchLoaderRegistry registry)
-
-
Method Details
-
dates
@BatchMapping(field="dates") public reactor.core.publisher.Mono<Map<AllFieldCasesWithIdSubtype,Date>> dates(org.dataloader.BatchLoaderEnvironment batchLoaderEnvironment, graphql.GraphQLContext graphQLContext, List<AllFieldCasesWithIdSubtype> keys) This methods loads the data for ${dataFetcher.graphQLType}.dates. It is generated as thegenerateBatchMappingDataFetchersplugin 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 dates field must be retrieved.- Returns:
- This method returns
${dataFetcher.batchMappingReturnType.value}, as defined by thebatchMappingDataFetcherReturnTypeplugin parameter.
Please look at the spring-graphql annotation for a documentation on how to return the proper values
-