Handle comment flags

This commit is contained in:
Chi Vinh Le
2017-06-16 20:06:13 +07:00
parent 5f450adbaf
commit 2625b372e1
8 changed files with 101 additions and 48 deletions
+8 -1
View File
@@ -948,12 +948,19 @@ type RootMutation {
type Subscription {
# Get an update whenever a comment was added.
commentAdded(asset_id: ID!): Comment
# `asset_id` is required except for users with the `ADMIN` or `MODERATOR` role.
commentAdded(asset_id: ID): Comment
# Get an update whenever a comment was edited.
# `asset_id` is required except for users with the `ADMIN` or `MODERATOR` role.
commentEdited(asset_id: ID): Comment
# Get an update whenever a comment was flagged.
# Requires the `ADMIN` or `MODERATOR` role.
commentFlagged(asset_id: ID): Comment
# Get an update whenever the status of a comment changed due to a moderator action.
# Requires the `ADMIN` or `MODERATOR` role.
commentStatusChanged(asset_id: ID): Comment
}