ContentUpdate
Payload for content subscription updates.| Field | Type | Description |
|---|---|---|
contentId | ID! | ID of the updated content |
content | Content | Full content object (null if exceeds 100KB) |
resolvedRef | ResolvedPackageRef! | Package IDs for caching |
action | String! | "CREATED", "UPDATED", or "DELETED" |
timestamp | DateTime! | When the update occurred |
Handling ContentUpdate
ComponentUpdate
Payload for component subscription updates.| Field | Type | Description |
|---|---|---|
componentId | ID! | ID of the updated component |
component | Component | Full component object (null if exceeds 100KB) |
resolvedRef | ResolvedPackageRef! | Package IDs for caching |
action | String! | "CREATED", "UPDATED", "PUBLISHED", or "DELETED" |
timestamp | DateTime! | When the update occurred |
PackageUpdate
Payload for package subscription updates.| Field | Type | Description |
|---|---|---|
packageId | ID! | ID of the updated package |
resolvedRef | ResolvedPackageRef! | Package IDs for caching |
action | String! | "CREATED", "UPDATED", "PUBLISHED", or "DELETED" |
timestamp | DateTime! | When the update occurred |
PreviewUpdate
Payload for preview subscription updates.| Field | Type | Description |
|---|---|---|
preview | PreviewResult! | Component or content preview |
action | String! | "UPDATED" or "DELETED" |
timestamp | DateTime! | When the update occurred |
PreviewResult Union
ComponentPreview
Preview data for a component.| Field | Type | Description |
|---|---|---|
componentId | ID! | Component ID |
componentName | String! | Component name for display/recents |
component | Component | Component data (null if exceeds 100KB) |
resolvedRef | ResolvedPackageRef! | Package IDs for caching |
ContentPreview
Preview data for content.| Field | Type | Description |
|---|---|---|
contentId | ID! | Content ID |
contentName | String! | Content name for display/recents |
contentTypeName | String! | Content type name for display/recents |
content | Content | Content data (null if exceeds 100KB) |
resolvedRef | ResolvedPackageRef! | Package IDs for caching |
Handling Preview Updates
100KB Payload Limit
AWS WebSocket has a payload limit. When data exceeds 100KB:- The
contentorcomponentfield will benull - The
resolvedReffield is always included - Use the ID to fetch the full data separately
Related
- Subscriptions - How to set up WebSocket subscriptions
- Resolved Package - Package resolution types