Apps & SurfacesSu Subscription

dataChangeEvents

Topics: Admin Aiml Apps Commerce Costing Devices Files IAM Integrations Jobs Logistics Product Templates Reporting Reports Scripting Surfaces Workflows

Subscribe to real-time data change events. Requires read permission on each requested resource. Task topics are the exception: a signed-in user without task:read receives the events of their own tasks only (assigned to them, claimed by them, unclaimed on their teams).

Returns

DataChangeEvent!

Arguments

topics

[String!]!Required

List of event topics to subscribe to (e.g., ["job.updated", "job.created"]). Requires read permission on each topic's resource, except task topics, which a signed-in user without it receives for their own tasks only.

Exact field SDL
"""
Subscribe to real-time data change events. Requires read permission on each requested resource. Task topics are the exception: a signed-in user without task:read receives the events of their own tasks only (assigned to them, claimed by them, unclaimed on their teams).
"""
dataChangeEvents(
  """
  List of event topics to subscribe to (e.g., ["job.updated", "job.created"]). Requires read permission on each topic's resource, except task topics, which a signed-in user without it receives for their own tasks only.
  """
  topics: [String!]!
): DataChangeEvent! @topic(names: [
  "jobs"
  "commerce"
  "logistics"
  "costing"
  "productTemplates"
  "files"
  "devices"
  "aiml"
  "apps"
  "workflows"
  "admin"
  "integrations"
  "surfaces"
  "scripting"
  "reporting"
  "reports"
  "iam"
])

Declared on Subscription. Access is checked by the platform for each operation.