Interface GraphQLRepositoryPartialRequests
- All Superinterfaces:
Queries
-
Field Summary
Fields inherited from interface com.graphql_java_generator.samples.forum.client.Queries
DATE_FORMAT, dateFormat
-
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) topicAuthorPostAuthor
(String boardName, Date since) Methods inherited from interface com.graphql_java_generator.samples.forum.client.Queries
getPostInput, getTopicInput, getTopicPostInput
-
Method Details
-
boardsSimple
@PartialRequest(requestName="boards", request="") List<Board> boardsSimple() throws GraphQLRequestPreparationException, GraphQLRequestExecutionException- Specified by:
boardsSimple
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
boardsAndTopicsWithFieldParameter
@PartialRequest(requestName="boards", request="{id name publiclyAvailable topics(since:?since){id}}") List<Board> boardsAndTopicsWithFieldParameter(@BindParameter(name="since") Date since) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException - Specified by:
boardsAndTopicsWithFieldParameter
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
topicAuthorPostAuthor
@PartialRequest(requestName="topics", request="{id date author{name email alias id type} nbPosts title content posts(memberId:?memberId, memberName: ?memberName, since: &sinceParam){id date author{name email alias} title content}}") List<Topic> topicAuthorPostAuthor(String boardName, @BindParameter(name="sinceParam") Date since) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException - Specified by:
topicAuthorPostAuthor
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
findTopics
@PartialRequest(request=" {id date title content} ") List<Topic> findTopics(String boardName, List<String> keyword) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException - Specified by:
findTopics
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
createBoard
@PartialRequest(request="", requestType=mutation) Board createBoard(String name, boolean publiclyAvailable) throws GraphQLRequestPreparationException, GraphQLRequestExecutionException - Specified by:
createBoard
in interfaceQueries
- Throws:
GraphQLRequestPreparationException
GraphQLRequestExecutionException
-
createTopic
@PartialRequest(request="", requestType=mutation) Topic createTopic(TopicInput topicInput) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createTopic
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
createMember
@PartialRequest(request="{id name alias email type}", requestType=mutation) Member createMember(MemberInput input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createMember
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
createPost
@PartialRequest(request="{id date author{id} title content publiclyAvailable}", requestType=mutation) Post createPost(PostInput input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createPost
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-
createPosts
@PartialRequest(request="{id date author{id} title content publiclyAvailable}", requestType=mutation) List<Post> createPosts(List<PostInput> input) throws GraphQLRequestExecutionException, GraphQLRequestPreparationException - Specified by:
createPosts
in interfaceQueries
- Throws:
GraphQLRequestExecutionException
GraphQLRequestPreparationException
-