Skip to main content
Query

myNotifications

Returns a page of the signed-in user's notifications, newest first, with the unread count.

Arguments

  • afterString

    endCursor of the previous page.

  • firstInt

    How many to return, 1 to 50. Default 20.

  • unreadOnlyBoolean

    Only unread notifications.

Returns

NotificationPage!

Example

query MyNotifications($after: String, $first: Int, $unreadOnly: Boolean) {
  myNotifications(after: $after, first: $first, unreadOnly: $unreadOnly) {
    endCursor
    hasMore
    unreadCount
  }
}