mirror of
https://github.com/wassname/talk.git
synced 2026-08-03 13:20:59 +08:00
Allow querying for all statuses
This commit is contained in:
+10
-5
@@ -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!]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user