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