Notifications

User notifications and read status.

Notifications

A notification delivered to a user, triggered by an event such as an order
fill, document approval, or role change.

Fields

Fields on the Notification object.

FieldTypeDescription
idID!
createdAtTime!
readAtTimeTimestamp when the user read this notification. Null if unread.
referenceNotificationReferenceThe entity that triggered this notification (e.g., an order or document).

Queries

Root queries that return or operate on this object.

notification

Returns a single notification by ID.

type Query {
  notification(id: ID!): Notification
}

Arguments

ArgumentTypeDescription
idID!

Returns

Notification

Mutations

Root mutations that create, update, or otherwise change this object.

readNotification

Marks a notification as read. Audit-logged.

type Mutation {
  readNotification(input: ReadNotificationInput!): ReadNotificationPayload!
}

Arguments

ArgumentTypeDescription
inputReadNotificationInput!

Returns

ReadNotificationPayload

Related types

Supporting objects, inputs, and enums used by this page.

Objects

NotificationConnection

Type: object

Relay connection for paginated Notification results.

Fields
FieldTypeDescription
nodes[Notification]!
edges[NotificationEdge!]!
pageInfoPageInfo!
totalCountInt!

NotificationEdge

Type: object

Relay edge wrapping a Notification node with its pagination cursor.

Fields
FieldTypeDescription
cursorString!
nodeNotification!

ReadNotificationPayload

Type: object

Response payload for the readNotification mutation.

Fields
FieldTypeDescription
successBoolean!

Interfaces

NotificationReference

Type: interface

Interface for entities that can trigger a notification.

Fields
FieldTypeDescription
idID!

Inputs

ReadNotificationInput

Type: input

Input for marking a notification as read.

Fields
FieldTypeDescription
notificationIdString!