shout related todos, schema update

This commit is contained in:
2021-07-27 07:58:06 +03:00
parent 0517dfc744
commit ea06b61d3f
2 changed files with 34 additions and 2 deletions

View File

@@ -37,6 +37,12 @@ type createMessagePayload {
message: Message
}
type createShoutPayload {
status: Boolean!
error: String
shout: Shout
}
################################### Mutation
type Mutation {
@@ -55,8 +61,8 @@ type Mutation {
registerUser(input: registerUserInput!): User!
# shout
createShout(body: String!, replyTo: [Int], title: String, versionOf: [Int], visibleForRoles: [Int], visibleForUsers: [Int]): Message!
deleteShout(shoutId: Int!): Message!
createShout(): Shout!
deleteShout(shoutId: Int!): Boolean!
rateShout(value: Int!): Boolean!
# profile