fixzine
This commit is contained in:
@@ -68,10 +68,16 @@ type MessageWithStatus {
|
||||
message: Message!
|
||||
}
|
||||
|
||||
type ChatRoomResult {
|
||||
messages: [Message]!
|
||||
room: ChatRoom!
|
||||
}
|
||||
|
||||
################################### Mutation
|
||||
|
||||
type Mutation {
|
||||
# message
|
||||
getRoom(chatRoom: Int!): ChatRoomResult! # TODO: private rooms protection
|
||||
createMessage(body: String!, replyTo: Int): MessageResult!
|
||||
updateMessage(id: Int!, body: String!): MessageResult!
|
||||
deleteMessage(messageId: Int!): Result!
|
||||
@@ -162,7 +168,7 @@ type Query {
|
||||
|
||||
type Subscription {
|
||||
messageChanged: MessageWithStatus!
|
||||
|
||||
chatUpdated: ChatRoomResult!
|
||||
onlineUpdated: [User!]!
|
||||
shoutUpdated: Shout!
|
||||
userUpdated: User!
|
||||
@@ -237,6 +243,7 @@ type User {
|
||||
|
||||
type Message {
|
||||
author: Int!
|
||||
chatRoom: Int!
|
||||
body: String!
|
||||
createdAt: DateTime!
|
||||
id: Int!
|
||||
@@ -245,6 +252,13 @@ type Message {
|
||||
visibleForUsers: [Int]!
|
||||
}
|
||||
|
||||
type ChatRoom {
|
||||
id: Int!
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
notes: String
|
||||
}
|
||||
|
||||
type Comment {
|
||||
id: Int!
|
||||
author: User!
|
||||
|
Reference in New Issue
Block a user