Class PartialDirectRequests
java.lang.Object
com.graphql_java_generator.samples.forum.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
-
Field Summary
Fields inherited from interface com.graphql_java_generator.samples.forum.client.Queries
DATE_FORMAT, dateFormat
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBoard
(String name, boolean publiclyAvailable) createMember
(MemberInput input) createPost
(PostInput input) createPosts
(List<PostInput> input) createTopic
(TopicInput input) findTopics
(String boardName, List<String> keyword) topicAuthorPostAuthor
(String boardName, Date since) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.graphql_java_generator.samples.forum.client.Queries
getPostInput, getTopicInput, getTopicPostInput
-
Constructor Details
-
PartialDirectRequests
public PartialDirectRequests()
-
-
Method Details
-
boardsSimple
public List<Board> boardsSimple() throws GraphQLRequestPreparationException, GraphQLRequestExecutionException- Specified by:
boardsSimple
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
boardsAndTopicsWithFieldParameter
public List<Board> boardsAndTopicsWithFieldParameter(Date since) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException - Specified by:
boardsAndTopicsWithFieldParameter
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
topicAuthorPostAuthor
public List<Topic> topicAuthorPostAuthor(String boardName, Date since) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException - Specified by:
topicAuthorPostAuthor
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
findTopics
public List<Topic> findTopics(String boardName, List<String> keyword) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException - Specified by:
findTopics
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
createBoard
public Board createBoard(String name, boolean publiclyAvailable) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException - Specified by:
createBoard
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
createTopic
public Topic createTopic(TopicInput input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createTopic
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
createMember
public Member createMember(MemberInput input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createMember
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
createPost
public Post createPost(PostInput input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createPost
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
createPosts
public List<Post> createPosts(List<PostInput> input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createPosts
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-