new message api initial

This commit is contained in:
knst-kotov 2022-01-23 11:24:16 +03:00
parent 1cc0e3e5df
commit 25b4f32025

View File

@ -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!