Class PartialDirectRequests
java.lang.Object
com.graphql_java_generator.samples.simple.client.graphql.PartialDirectRequests
- All Implemented Interfaces:
Queries
This class implements the simplest way to call GraphQl queries, with the GraphQL Java Generator
- Author:
- etienne-sf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateHuman
(String name, String homePlanet) droidPartial
(String id) heroFriendsFriendsFriends
(Episode episode) heroFull()
heroPartial
(Episode episode) humanPartial
(String id)
-
Constructor Details
-
PartialDirectRequests
public PartialDirectRequests()
-
-
Method Details
-
heroFull
public Character heroFull() throws GraphQLRequestExecutionException, GraphQLRequestPreparationException- Specified by:
heroFull
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
heroPartial
public Character heroPartial(Episode episode) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
heroPartial
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
heroFriendsFriendsFriends
public Character heroFriendsFriendsFriends(Episode episode) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
heroFriendsFriendsFriends
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
humanFull
public Human humanFull(String id) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
humanFull
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
humanPartial
public Human humanPartial(String id) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
humanPartial
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
humanFriendsFriendsFriends
public Human humanFriendsFriendsFriends(String id) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
humanFriendsFriendsFriends
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
droidFull
public Droid droidFull(String id) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
droidFull
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
droidPartial
public Droid droidPartial(String id) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
droidPartial
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
droidFriendsFriendsFriends
public Droid droidFriendsFriendsFriends(String id) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
droidFriendsFriendsFriends
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
droidDoesNotExist
public Droid droidDoesNotExist() throws GraphQLRequestExecutionException, GraphQLRequestPreparationException- Specified by:
droidDoesNotExist
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
createHuman
public Human createHuman(String name, String homePlanet) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createHuman
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
addFriend
public Character addFriend(String idCharacter, String idNewFriend) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
addFriend
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-