subscription on comments

This commit is contained in:
knst-kotov
2022-01-28 12:49:46 +03:00
parent 92595e567c
commit 06437ab5bd
3 changed files with 90 additions and 7 deletions

View File

@@ -95,6 +95,19 @@ type TopicResult {
topic: Topic
}
enum CommentStatus {
NEW
UPDATED
UPDATED_RATING
DELETED
}
type CommentUpdatedResult {
error: String
status: CommentStatus
comment: Comment
}
################################### Mutation
type Mutation {
@@ -192,6 +205,7 @@ type Subscription {
shoutUpdated: Shout!
userUpdated: User!
topicUpdated(user_id: Int!): Shout!
commentUpdated(shout: String!): CommentUpdatedResult!
}
############################################ Entities