Interface Queries
- All Known Subinterfaces:
GraphQLRepositoryPartialRequests
- All Known Implementing Classes:
PartialDirectRequests
,PartialPreparedRequests
public interface Queries
This interface contains the queries that will be defined in this sample. The queries are defined in the package
com.graphql_java_generator.samples.forum.client.graphql, by three classes. These three classes show the three ways to
build and execute GraphQL Request with graphql-java-generator
- Author:
- etienne-sf
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBoard
(String name, boolean publiclyAvailable) createMember
(MemberInput input) createPost
(PostInput input) createPosts
(List<PostInput> input) createTopic
(TopicInput topicInput) findTopics
(String boardName, List<String> keyword) default PostInput
getPostInput
(Topic topic, Member author, Date date, boolean publiclyAvailable, String title, String content) A utility method to create the PostInput Type, from its valuesdefault TopicInput
getTopicInput
(Board board, Member author, Date date, boolean publiclyAvailable, String title, String content) A utility method to create the TopicInput Type, from its valuesdefault TopicPostInput
getTopicPostInput
(Member author, Date date, boolean publiclyAvailable, String title, String content) A utility method to create the TopicPostInput Type, from its valuestopicAuthorPostAuthor
(String boardName, Date since)
-
Field Details
-
DATE_FORMAT
- See Also:
-
dateFormat
-
-
Method Details
-
boardsSimple
List<Board> boardsSimple() throws GraphQLRequestPreparationException, GraphQLRequestExecutionException -
boardsAndTopicsWithFieldParameter
List<Board> boardsAndTopicsWithFieldParameter(Date since) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException -
topicAuthorPostAuthor
List<Topic> topicAuthorPostAuthor(String boardName, Date since) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException -
findTopics
List<Topic> findTopics(String boardName, List<String> keyword) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException -
createBoard
Board createBoard(String name, boolean publiclyAvailable) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException -
createTopic
Topic createTopic(TopicInput topicInput) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException -
createMember
Member createMember(MemberInput input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException -
createPost
Post createPost(PostInput input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException -
createPosts
List<Post> createPosts(List<PostInput> input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException -
getTopicPostInput
default TopicPostInput getTopicPostInput(Member author, Date date, boolean publiclyAvailable, String title, String content) A utility method to create the TopicPostInput Type, from its values -
getTopicInput
default TopicInput getTopicInput(Board board, Member author, Date date, boolean publiclyAvailable, String title, String content) A utility method to create the TopicInput Type, from its values -
getPostInput
default PostInput getPostInput(Topic topic, Member author, Date date, boolean publiclyAvailable, String title, String content) A utility method to create the PostInput Type, from its values
-