graphql-subscription-test-author
Installation
SKILL.md
graphql-subscription-test-author
Overview
Per the GraphQL October 2021 spec (section 6.3, blocked by Cloudflare Turnstile - cite by stable ID "GraphQL October 2021 spec, Section 6.3: Subscription"), a subscription operation must: select a single root field, return an event stream, and emit one result per event. Each emitted result is executed independently against the schema, exactly like a query.
This skill covers testing the transport and resolver layers for subscriptions. The two most common Node.js transports are:
- graphql-ws - WebSocket subprotocol
"graphql-ws"(per the-guild.dev/graphql/ws) - graphql-sse - HTTP Server-Sent Events (per the-guild.dev/graphql/sse)