new message api initial
This commit is contained in:
parent
1cc0e3e5df
commit
25b4f32025
|
@ -64,6 +64,11 @@ enum MessageStatus {
|
|||
DELETED
|
||||
}
|
||||
|
||||
type CreateChatResult {
|
||||
chatId: Int
|
||||
error: String
|
||||
}
|
||||
|
||||
type MessageWithStatus {
|
||||
status: MessageStatus!
|
||||
message: Message!
|
||||
|
@ -92,6 +97,7 @@ type TopicResult {
|
|||
|
||||
type Mutation {
|
||||
# message
|
||||
createChat: CreateChatResult!
|
||||
getRoom(chatRoom: Int!): ChatRoomResult! # TODO: private rooms protection
|
||||
createMessage(body: String!, replyTo: Int): MessageResult!
|
||||
updateMessage(id: Int!, body: String!): MessageResult!
|
||||
|
|
Loading…
Reference in New Issue
Block a user