graphql.message.graphqls Maven / Gradle / Ivy
extend type Query {
message(id: ID!): Message!
myMessages(read: Boolean, range: Range!): [Message!]!
myMessagesCount(read: Boolean): Int
}
extend type Mutation {
markMessageRead(id: ID!, read: Boolean!): Int!
deleteMessage(id: ID!): Int!
}
extend type Subscription {
messages: Message!
}
type Message {
id: ID!
sender: User
recipient: User!
subject: String!
body: String!
attachments: [ContentRef!]!
readAt: DateTime
publishedAt: DateTime
processKey: String
processDefinition: ProcessDefinition
}