Package org.allGraphQLCases.demo.impl
Interface PartialRequestGraphQLReactiveRepository
@GraphQLReactiveRepository(queryExecutor=MyQueryTypeReactiveExecutorAllGraphQLCases.class)
public interface PartialRequestGraphQLReactiveRepository
This interface demonstrate the use of GraphqlRepository: it just redefines the method of the
And that's it: no implementation class is needed. Everything is done at runtime by the plugin runtime code.
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 theGraphQLRepository
interface would not inherit from another interface) - Are marked with the
PartialRequest
annotation, to define the associated GraphQL request
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 Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Optional<CTP_break_CTS>>
aBreak
(CEP_extends_CES test, String _if) reactor.core.publisher.Mono<Optional<CTP_AllFieldCases_CTS>>
allFieldCases
(CINP_AllFieldCasesInput_CINS allFieldCasesInput, Boolean uppercase, String textToAppendToTheForname, long nbItemsWithId, Date date, OffsetDateTime dateTime, List<Date> dates, Boolean uppercaseNameList, String textToAppendToTheFornameWithId, CINP_FieldParameterInput_CINS input, int nbItemsWithoutId, CINP_FieldParameterInput_CINS inputList, String textToAppendToTheFornameWithoutId) reactor.core.publisher.Mono<Optional<CTP_Human_CTS>>
createHuman
(CINP_HumanInput_CINS human) reactor.core.publisher.Mono<Optional<CIP_Character_CIS>>
reactor.core.publisher.Mono<Optional<CIP_Character_CIS>>
withEnum
(CEP_Episode_CES episode) reactor.core.publisher.Mono<Optional<List<CIP_Character_CIS>>>
withList
(String name, List<CINP_CharacterInput_CINS> friends) reactor.core.publisher.Mono<Optional<CIP_Character_CIS>>
withOneMandatoryParam
(CINP_CharacterInput_CINS character) reactor.core.publisher.Mono<Optional<CIP_Character_CIS>>
withOneOptionalParam
(CINP_CharacterInput_CINS character) reactor.core.publisher.Mono<Optional<List<CIP_Character_CIS>>>
-
Method Details
-
withoutParameters
@PartialRequest(request="{appearsIn name}") reactor.core.publisher.Mono<Optional<List<CIP_Character_CIS>>> withoutParameters() throws GraphQLRequestExecutionException- Throws:
GraphQLRequestExecutionException
-
withOneOptionalParam
@PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<CIP_Character_CIS>> withOneOptionalParam(CINP_CharacterInput_CINS character) throws GraphQLRequestExecutionException - Throws:
GraphQLRequestExecutionException
-
withOneMandatoryParam
@PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<CIP_Character_CIS>> withOneMandatoryParam(CINP_CharacterInput_CINS character) throws GraphQLRequestExecutionException - Throws:
GraphQLRequestExecutionException
-
withEnum
@PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<CIP_Character_CIS>> withEnum(CEP_Episode_CES episode) throws GraphQLRequestExecutionException - Throws:
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 GraphQLRequestExecutionException - Throws:
GraphQLRequestExecutionException
-
error
@PartialRequest(request="{id name appearsIn friends {id name}}") reactor.core.publisher.Mono<Optional<CIP_Character_CIS>> error(String errorLabel) throws GraphQLRequestExecutionException - Throws:
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 GraphQLRequestExecutionException - Throws:
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 GraphQLRequestExecutionException - Throws:
GraphQLRequestExecutionException
-
createHuman
@PartialRequest(request="{id name}", requestType=mutation) reactor.core.publisher.Mono<Optional<CTP_Human_CTS>> createHuman(CINP_HumanInput_CINS human) throws GraphQLRequestExecutionException - Throws:
GraphQLRequestExecutionException
-