Interface PartialRequestGraphQLReactiveRepository


@GraphQLReactiveRepository(queryExecutor=MyQueryTypeReactiveExecutorAllGraphQLCases.class) public interface PartialRequestGraphQLReactiveRepository
This interface demonstrate the use of GraphqlRepository: it just redefines the method of the PartialQueries interface. These methods:
  • Are marked with the Override annotation, to make sure it comes from the super interface (useless in normal use case, as the GraphQLRepository interface would not inherit from another interface)
  • Are marked with the PartialRequest annotation, to define the associated GraphQL request
Please note that the class is itself marked with the GraphQLRepository annotation.
And that's it: no implementation class is needed. Everything is done at runtime by the plugin runtime code.
Author:
etienne-sf
  • Method Details

    • withoutParameters

      @PartialRequest(request="{appearsIn name}") reactor.core.publisher.Mono<Optional<List<CIP_Character_CIS>>> withoutParameters() throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • withOneOptionalParam

      @PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<CIP_Character_CIS>> withOneOptionalParam(CINP_CharacterInput_CINS character) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • withOneMandatoryParam

      @PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<CIP_Character_CIS>> withOneMandatoryParam(CINP_CharacterInput_CINS character) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • withEnum

      @PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<CIP_Character_CIS>> withEnum(CEP_Episode_CES episode) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • withList

      @PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<List<CIP_Character_CIS>>> withList(String name, List<CINP_CharacterInput_CINS> friends) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • error

      @PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<CIP_Character_CIS>> error(String errorLabel) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • allFieldCases

      @PartialRequest(request="{ ... on WithID { id } name date dateTime dates forname(uppercase: ?uppercase, textToAppendToTheForname: ?textToAppendToTheForname) age nbComments comments booleans aliases planets friends {id} oneWithIdSubType {id name} listWithIdSubTypes(nbItems: ?nbItemsWithId, date: ?date, dates: &dates, uppercaseName: ?uppercaseNameList, textToAppendToTheForname: ?textToAppendToTheFornameWithId) {name id} oneWithoutIdSubType(input: ?input) {name} listWithoutIdSubTypes(nbItems: ?nbItemsWithoutId, input: ?inputList, textToAppendToTheForname: ?textToAppendToTheFornameWithoutId) {name}}") reactor.core.publisher.Mono<Optional<CTP_AllFieldCases_CTS>> allFieldCases(CINP_AllFieldCasesInput_CINS allFieldCasesInput, @BindParameter(name="uppercase") Boolean uppercase, @BindParameter(name="textToAppendToTheForname") String textToAppendToTheForname, @BindParameter(name="nbItemsWithId") long nbItemsWithId, @BindParameter(name="date") Date date, @BindParameter(name="dateTime") OffsetDateTime dateTime, @BindParameter(name="dates") List<Date> dates, @BindParameter(name="uppercaseNameList") Boolean uppercaseNameList, @BindParameter(name="textToAppendToTheFornameWithId") String textToAppendToTheFornameWithId, @BindParameter(name="input") CINP_FieldParameterInput_CINS input, @BindParameter(name="nbItemsWithoutId") int nbItemsWithoutId, @BindParameter(name="inputList") CINP_FieldParameterInput_CINS inputList, @BindParameter(name="textToAppendToTheFornameWithoutId") String textToAppendToTheFornameWithoutId) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • aBreak

      @PartialRequest(request="{case(test: &test, if: ?if)}") reactor.core.publisher.Mono<Optional<CTP_break_CTS>> aBreak(@BindParameter(name="test") CEP_extends_CES test, @BindParameter(name="if") String _if) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException
    • createHuman

      @PartialRequest(request="{id name}", requestType=mutation) reactor.core.publisher.Mono<Optional<CTP_Human_CTS>> createHuman(CINP_HumanInput_CINS human) throws com.graphql_java_generator.exception.GraphQLRequestExecutionException
      Throws:
      com.graphql_java_generator.exception.GraphQLRequestExecutionException