Posting a notification without an event directly to a mailbox bypasses the mailbox's eventName and eventType filters, so it's a useful way to post user or admin notifications. It's also useful if you don't or can't have an event, like if you're integrating an external API.
Steps
mutation {
notificationPost(
input: {
# ID of each mailbox you want to send a notification to
mailboxIds: String[]
title: String
body: String
contentType: String
flags: [unseen, unread]
}
) {
id
body
title
contentType
flags
createdDateTime
}
}
The notification appears in the app bar.