Live GraphQL Subscription Studio
graphql-wsConnect over RFC-compliant WebSocket transport and watch reactive data streams in real time.
Trigger a real database mutation in your session sandbox. The server will immediately publish an event through the GraphQL WebSocket connection.
No events captured yet.
Click “Connect & Subscribe” and trigger a mutation to observe real-time data flow.
WebSocket Architecture & graphql-ws Transport
Playground API provides stateful real-time GraphQL Subscriptions over WebSocket compliant with the modern graphql-ws protocol. Whenever a record is created or updated in your sandbox (via GraphQL mutations or REST endpoints), the reactive in-memory PubSub engine immediately publishes the event to active WebSocket listeners scoped strictly to your sandbox session.
RFC graphql-ws Protocol
Native compatibility with Apollo Client GraphQLWsLink, Urql, Relay, and modern GraphQL developer tooling.
Unified REST & GQL Mutations
Events are emitted regardless of whether mutations are made via REST (POST /posts) or GraphQL (createPost).
Session Sandbox Isolation
Subscription streams are scoped to your session identity token (token or Authorization: Bearer), preventing cross-user noise.
Supported Subscription Fields & Arguments
| Subscription Field | Arguments | Return Type | Description |
|---|---|---|---|
| postAdded | — | Post! | Fires when any new post is created in the current sandbox. |
| commentAdded | postId: ID | Comment! | Fires when a comment is added, optionally filtered by postId. |
| todoUpdated | userId: ID | Todo! | Fires when a todo is created or updated in the current sandbox. |
| customRecordMutated | collection: String! | CustomRecord! | Fires when a dynamic custom entity (e.g. products, orders) is mutated. |