Implement live updates for mod actions

This commit is contained in:
Chi Vinh Le
2017-06-15 01:08:25 +07:00
parent 687b135adf
commit 3658a804b0
22 changed files with 432 additions and 255 deletions
+8
View File
@@ -936,9 +936,17 @@ type RootMutation {
## Subscriptions
################################################################################
# Response to ignoreUser mutation
type CommentStatusChangedUpdate {
user: User
comment: Comment
previous: Comment
}
type Subscription {
commentAdded(asset_id: ID!): Comment
commentEdited(asset_id: ID!): Comment
commentStatusChanged(asset_id: ID): CommentStatusChangedUpdate
}
################################################################################