subscription on comments
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user