Package org.allGraphQLCases.server.impl
Class DataFetchersDelegateAnotherMutationTypeImpl
java.lang.Object
org.allGraphQLCases.server.impl.DataFetchersDelegateAnotherMutationTypeImpl
- All Implemented Interfaces:
DataFetchersDelegateAnotherMutationType
@Component
public class DataFetchersDelegateAnotherMutationTypeImpl
extends Object
implements DataFetchersDelegateAnotherMutationType
- Author:
- etienne-sf
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_if(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment) Description for the if field:
test for issue #139 (use of java reserved keyword)
This method loads the data for AnotherMutationType.if._implements(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment) This method loads the data for AnotherMutationType.implements.createAllFieldCases(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, SINP_AllFieldCasesInput_SINS input) This method loads the data for AnotherMutationType.createAllFieldCases.createHuman(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, SINP_HumanInput_SINS human) This method loads the data for AnotherMutationType.createHuman.deleteSnacks(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, List<UUID> id) To check the serialization and deserialization of the requests, we check the content of the given list.
Expected: a list that contains these three items:
"11111111-1111-1111-1111-111111111111"
"22222222-2222-2222-2222-222222222222"
"33333333-3333-3333-3333-333333333333"
-
Field Details
-
logger
protected static org.slf4j.Logger logger
-
-
Constructor Details
-
DataFetchersDelegateAnotherMutationTypeImpl
public DataFetchersDelegateAnotherMutationTypeImpl()
-
-
Method Details
-
createHuman
public STP_Human_STS createHuman(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, SINP_HumanInput_SINS human) Description copied from interface:DataFetchersDelegateAnotherMutationTypeThis method loads the data for AnotherMutationType.createHuman. It may return whatever is accepted by the Spring Controller, that is:- A resolved value of any type (typically, a org.allGraphQLCases.server.STP_Human_STS)
- Mono and Flux for asynchronous value(s). Supported for controller methods and for any DataFetcher as described in Reactive DataFetcher. This would typically be a Mono<org.allGraphQLCases.server.STP_Human_STS> or a Flux<org.allGraphQLCases.server.STP_Human_STS>
- Kotlin coroutine and Flow are adapted to Mono and Flux
- java.util.concurrent.Callable to have the value(s) produced asynchronously. For this to work, AnnotatedControllerConfigurer must be configured with an Executor. This would typically by a Callable<org.allGraphQLCases.server.STP_Human_STS>
- A CompletableFuture<?>, for instance CompletableFuture<org.allGraphQLCases.server.STP_Human_STS>. This allows to use graphql-java java-dataloader to highly optimize the number of requests to the server. The principle is this one: The data loader collects all the data to load, avoid to load several times the same data, and allows parallel execution of the queries, if multiple queries are to be run.
- A Publisher (instead of a Flux), for Subscription for instance
- Specified by:
createHumanin interfaceDataFetchersDelegateAnotherMutationType- Parameters:
dataFetchingEnvironment- The GraphQLDataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcherhuman- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.
-
createAllFieldCases
public STP_AllFieldCases_STS createAllFieldCases(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, SINP_AllFieldCasesInput_SINS input) Description copied from interface:DataFetchersDelegateAnotherMutationTypeThis method loads the data for AnotherMutationType.createAllFieldCases. It may return whatever is accepted by the Spring Controller, that is:- A resolved value of any type (typically, a org.allGraphQLCases.server.STP_AllFieldCases_STS)
- Mono and Flux for asynchronous value(s). Supported for controller methods and for any DataFetcher as described in Reactive DataFetcher. This would typically be a Mono<org.allGraphQLCases.server.STP_AllFieldCases_STS> or a Flux<org.allGraphQLCases.server.STP_AllFieldCases_STS>
- Kotlin coroutine and Flow are adapted to Mono and Flux
- java.util.concurrent.Callable to have the value(s) produced asynchronously. For this to work, AnnotatedControllerConfigurer must be configured with an Executor. This would typically by a Callable<org.allGraphQLCases.server.STP_AllFieldCases_STS>
- A CompletableFuture<?>, for instance CompletableFuture<org.allGraphQLCases.server.STP_AllFieldCases_STS>. This allows to use graphql-java java-dataloader to highly optimize the number of requests to the server. The principle is this one: The data loader collects all the data to load, avoid to load several times the same data, and allows parallel execution of the queries, if multiple queries are to be run.
- A Publisher (instead of a Flux), for Subscription for instance
- Specified by:
createAllFieldCasesin interfaceDataFetchersDelegateAnotherMutationType- Parameters:
dataFetchingEnvironment- The GraphQLDataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcherinput- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.
-
deleteSnacks
public Boolean deleteSnacks(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment, List<UUID> id) To check the serialization and deserialization of the requests, we check the content of the given list.
Expected: a list that contains these three items:
"11111111-1111-1111-1111-111111111111"
"22222222-2222-2222-2222-222222222222"
"33333333-3333-3333-3333-333333333333"- Specified by:
deleteSnacksin interfaceDataFetchersDelegateAnotherMutationType- Parameters:
dataFetchingEnvironment- The GraphQLDataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcherid- The input parameter sent in the query by the GraphQL consumer, as defined in the GraphQL schema.- Returns:
- Returns true, if this condition is true
-
_if
Description copied from interface:DataFetchersDelegateAnotherMutationTypeDescription for the if field:
test for issue #139 (use of java reserved keyword)
This method loads the data for AnotherMutationType.if. It may return whatever is accepted by the Spring Controller, that is:- A resolved value of any type (typically, a java.lang.String)
- Mono and Flux for asynchronous value(s). Supported for controller methods and for any DataFetcher as described in Reactive DataFetcher. This would typically be a Mono<java.lang.String> or a Flux<java.lang.String>
- Kotlin coroutine and Flow are adapted to Mono and Flux
- java.util.concurrent.Callable to have the value(s) produced asynchronously. For this to work, AnnotatedControllerConfigurer must be configured with an Executor. This would typically by a Callable<java.lang.String>
- A CompletableFuture<?>, for instance CompletableFuture<java.lang.String>. This allows to use graphql-java java-dataloader to highly optimize the number of requests to the server. The principle is this one: The data loader collects all the data to load, avoid to load several times the same data, and allows parallel execution of the queries, if multiple queries are to be run.
- A Publisher (instead of a Flux), for Subscription for instance
- Specified by:
_ifin interfaceDataFetchersDelegateAnotherMutationType- Parameters:
dataFetchingEnvironment- The GraphQLDataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
-
_implements
Description copied from interface:DataFetchersDelegateAnotherMutationTypeThis method loads the data for AnotherMutationType.implements. It may return whatever is accepted by the Spring Controller, that is:- A resolved value of any type (typically, a java.lang.String)
- Mono and Flux for asynchronous value(s). Supported for controller methods and for any DataFetcher as described in Reactive DataFetcher. This would typically be a Mono<java.lang.String> or a Flux<java.lang.String>
- Kotlin coroutine and Flow are adapted to Mono and Flux
- java.util.concurrent.Callable to have the value(s) produced asynchronously. For this to work, AnnotatedControllerConfigurer must be configured with an Executor. This would typically by a Callable<java.lang.String>
- A CompletableFuture<?>, for instance CompletableFuture<java.lang.String>. This allows to use graphql-java java-dataloader to highly optimize the number of requests to the server. The principle is this one: The data loader collects all the data to load, avoid to load several times the same data, and allows parallel execution of the queries, if multiple queries are to be run.
- A Publisher (instead of a Flux), for Subscription for instance
- Specified by:
_implementsin interfaceDataFetchersDelegateAnotherMutationType- Parameters:
dataFetchingEnvironment- The GraphQLDataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
-