core/schema/schema.messages.graphql
2021-07-01 21:26:04 +03:00

32 lines
393 B
GraphQL

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