Skip to main content

myNotifications

Retrieves in-app notifications for the current user, plus the notifications of the company in the current context.

Authentication​

Authentication is required. Unauthenticated requests will fail.

Filtering​

Results can be filtered by read status, category, and kind. By default, all notifications (read and unread) are returned.

Sorting​

Results are sorted by creation date in descending order (newest first). When companyFirst is true, company notifications are listed before personal ones, each still ordered by creation date.

myNotifications(
after: String
before: String
companyFirst: Boolean = false
filters: NotificationFilterInput
first: Int
last: Int
): InAppNotificationConnection!

Arguments​

myNotifications.after ● String scalar common​

Returns the elements in the list that come after the specified cursor.

myNotifications.before ● String scalar common​

Returns the elements in the list that come before the specified cursor.

myNotifications.companyFirst ● Boolean scalar common​

If true, company notifications are listed before personal ones.

myNotifications.filters ● NotificationFilterInput input common​

Filter criteria to narrow down notification results

myNotifications.first ● Int scalar common​

Returns the first _n_ elements from the list.

myNotifications.last ● Int scalar common​

Returns the last _n_ elements from the list.

Type​

InAppNotificationConnection object common​

The connection type for InAppNotification.