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
    Modifier and Type
    Field
    Description
    protected static org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    _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"

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: DataFetchersDelegateAnotherMutationType
      This 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>
      As a complement to the spring-graphql documentation, you may also return:
      • 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:
      createHuman in interface DataFetchersDelegateAnotherMutationType
      Parameters:
      dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
      human - 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: DataFetchersDelegateAnotherMutationType
      This 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>
      As a complement to the spring-graphql documentation, you may also return:
      • 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:
      createAllFieldCases in interface DataFetchersDelegateAnotherMutationType
      Parameters:
      dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
      input - 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:
      deleteSnacks in interface DataFetchersDelegateAnotherMutationType
      Parameters:
      dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
      id - 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

      public String _if(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment)
      Description copied from interface: DataFetchersDelegateAnotherMutationType
      Description 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>
      As a complement to the spring-graphql documentation, you may also return:
      • 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:
      _if in interface DataFetchersDelegateAnotherMutationType
      Parameters:
      dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher
    • _implements

      public String _implements(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment)
      Description copied from interface: DataFetchersDelegateAnotherMutationType
      This 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>
      As a complement to the spring-graphql documentation, you may also return:
      • 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:
      _implements in interface DataFetchersDelegateAnotherMutationType
      Parameters:
      dataFetchingEnvironment - The GraphQL DataFetchingEnvironment. It gives you access to the full GraphQL context for this DataFetcher