Allow querying for all statuses

This commit is contained in:
Chi Vinh Le
2017-09-20 02:39:31 +07:00
parent 6e89b8c1aa
commit b482976c58
5 changed files with 37 additions and 22 deletions
+10 -5
View File
@@ -264,8 +264,9 @@ input CommentsQuery {
# Author of the comments
author_id: ID
# Current status of a comment. Requires the `ADMIN` role.
statuses: [COMMENT_STATUS!]
# Current status of a comment.
# This field is restricted.
statuses: [COMMENT_STATUS!] = [NONE, ACCEPTED]
# Asset that a comment is on.
asset_id: ID
@@ -317,8 +318,9 @@ input RepliesQuery {
# methods.
input CommentCountQuery {
# Current status of a comment. Requires the `ADMIN` role.
statuses: [COMMENT_STATUS!]
# Current status of a comment.
# This field is restricted.
statuses: [COMMENT_STATUS!] = [NONE, ACCEPTED]
# Asset that a comment is on.
asset_id: ID
@@ -688,7 +690,7 @@ type Asset {
# The comments that are attached to the asset. When `deep` is true, the
# comments returned will be at all depths.
comments(query: CommentsQuery = {}, deep: Boolean = false): CommentConnection!
comments(query: CommentsQuery = {}, deep: Boolean = false): CommentConnection
# A Comment from the Asset by comment's ID
comment(id: ID!): Comment
@@ -875,6 +877,9 @@ type CreateCommentResponse implements Response {
# The comment that was created.
comment: Comment
# Flags that was assigned during creation of the comment.
flags: [FlagAction]
# An array of errors relating to the mutation that occurred.
errors: [UserError!]
}