Skip to content

notifications

Get notifications for a given user (or for the current user)

Arguments

sort_by · String · Options are created_at_asc and created_at_desc. Defaults to created_at_desc
after · String · Returns the elements in the list that come after the specified cursor.
before · String · Returns the elements in the list that come before the specified cursor.
first · Int · Returns the first _n_ elements from the list.
last · Int · Returns the last _n_ elements from the list.

Returns

NotificationPaginationConnection

Example

query notifications(
$other_party_id: String
$read_status: Boolean
$seen_status: Boolean
$types: [String]
$sort_by: String
$order_by: NotificationOrderKeys
$after: String
$before: String
$first: Int
$last: Int
) {
notifications(
other_party_id: $other_party_id
read_status: $read_status
seen_status: $seen_status
types: $types
sort_by: $sort_by
order_by: $order_by
after: $after
before: $before
first: $first
last: $last
) {
edges
nodes
page_info
total_count
}
}