Skip to main content

markAllNotificationsRead

Requires permission notifications:user-notification:mark-read.

Marks all of the signed-in user's unread notifications as read and returns how many were changed. Requires permission to mark notifications read.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation MarkAllNotificationsRead {
markAllNotificationsRead
}

Response:

{
"data": {
"markAllNotificationsRead": 0
}
}
markAllNotificationsRead: Int!

Type​

Int scalar​

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.