add methods for messaging

This commit is contained in:
knst-kotov
2021-07-01 21:26:04 +03:00
parent 4f2f4187fe
commit 7b5065616f
8 changed files with 144 additions and 36 deletions

View File

@@ -0,0 +1,31 @@
type Message {
author: Int!
body: String!
createdAt: DateTime!
id: Int!
replyTo: Int
updatedAt: DateTime!
visibleForUsers: [Int]
}
type createMessagePayload {
status: Boolean!
error: String
message: Message
}
type deleteMessagePayload {
status: Boolean!
error: String
}
input MessageInput {
body: String!
replyTo: Int
}
input updateMessageInput {
id: Int!
body: String!
}