one subscription on messages
This commit is contained in:
@@ -51,6 +51,17 @@ type CommentResult {
|
||||
comment: Comment
|
||||
}
|
||||
|
||||
enum MessageStatus {
|
||||
NEW
|
||||
UPDATED
|
||||
DELETED
|
||||
}
|
||||
|
||||
type MessageWithStatus {
|
||||
status: MessageStatus!
|
||||
message: Message!
|
||||
}
|
||||
|
||||
################################### Mutation
|
||||
|
||||
type Mutation {
|
||||
@@ -132,9 +143,7 @@ type Query {
|
||||
############################################ Subscription
|
||||
|
||||
type Subscription {
|
||||
messageCreated: Message!
|
||||
messageUpdated: Message!
|
||||
messageDeleted: Message!
|
||||
messageChanged: MessageWithStatus!
|
||||
|
||||
onlineUpdated: [User!]!
|
||||
shoutUpdated: Shout!
|
||||
|
Reference in New Issue
Block a user