Package org.allGraphQLCases.demo.impl
Interface PartialRequestGraphQLRepository
- All Superinterfaces:
PartialQueries
@GraphQLRepository(queryExecutor=MyQueryTypeExecutorAllGraphQLCases.class)
public interface PartialRequestGraphQLRepository
extends PartialQueries
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 TypeMethodDescriptionaBreak
(CEP_extends_CES test, String _if) 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) createHuman
(CINP_HumanInput_CINS human) withEnum
(CEP_Episode_CES episode) withList
(String name, List<CINP_CharacterInput_CINS> friends) withOneMandatoryParam
(CINP_CharacterInput_CINS character) withOneOptionalParam
(CINP_CharacterInput_CINS character)
-
Method Details
-
withoutParameters
@PartialRequest(request="{appearsIn name}") List<CIP_Character_CIS> withoutParameters() throws GraphQLRequestExecutionException- Specified by:
withoutParameters
in interfacePartialQueries
- Throws:
GraphQLRequestExecutionException
-
withOneOptionalParam
@PartialRequest(request="{id name appearsIn friends {id name}}") CIP_Character_CIS withOneOptionalParam(CINP_CharacterInput_CINS character) throws GraphQLRequestExecutionException - Specified by:
withOneOptionalParam
in interfacePartialQueries
- Throws:
GraphQLRequestExecutionException
-
withOneMandatoryParam
@PartialRequest(request="{id name appearsIn friends {id name}}") CIP_Character_CIS withOneMandatoryParam(CINP_CharacterInput_CINS character) throws GraphQLRequestExecutionException - Specified by:
withOneMandatoryParam
in interfacePartialQueries
- Throws:
GraphQLRequestExecutionException
-
withEnum
@PartialRequest(request="{id name appearsIn friends {id name}}") CIP_Character_CIS withEnum(CEP_Episode_CES episode) throws GraphQLRequestExecutionException - Specified by:
withEnum
in interfacePartialQueries
- Throws:
GraphQLRequestExecutionException
-
withList
@PartialRequest(request="{id name appearsIn friends {id name}}") List<CIP_Character_CIS> withList(String name, List<CINP_CharacterInput_CINS> friends) throws GraphQLRequestExecutionException - Specified by:
withList
in interfacePartialQueries
- Throws:
GraphQLRequestExecutionException
-
error
@PartialRequest(request="{id name appearsIn friends {id name}}") CIP_Character_CIS error(String errorLabel) throws GraphQLRequestExecutionException - Specified by:
error
in interfacePartialQueries
- 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}}") 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 - Specified by:
allFieldCases
in interfacePartialQueries
- Throws:
GraphQLRequestExecutionException
-
aBreak
@PartialRequest(request="{case(test: &test, if: ?if)}") CTP_break_CTS aBreak(@BindParameter(name="test") CEP_extends_CES test, @BindParameter(name="if") String _if) throws GraphQLRequestExecutionException - Specified by:
aBreak
in interfacePartialQueries
- Throws:
GraphQLRequestExecutionException
-
createHuman
@PartialRequest(request="{id name}", requestType=mutation) CTP_Human_CTS createHuman(CINP_HumanInput_CINS human) throws GraphQLRequestExecutionException - Specified by:
createHuman
in interfacePartialQueries
- Throws:
GraphQLRequestExecutionException
-