Subscription Schema
Available Subscriptions
contentUpdated
Watch for updates to published content
previewUpdated
Watch for updates to draft previews
WebSocket Client Setup
Using graphql-ws
For Preview Subscriptions
UsepreviewToken instead of x-api-key:
Handling Large Payloads
AWS WebSocket has a 128KB payload limit. When data exceeds this limit:- The
contentorcomponentfield will benull - The
resolvedReffield is always included - Fetch the full data separately using the ID
- Use the
resolvedRefto fetch package data
Related
- Subscription Types - ContentUpdate, PreviewUpdate type definitions
- Caching - Normalized package caching for subscriptions
