Skip to content

feat(server): upgrade bundled playground to GraphiQL 6 - #109

Merged
patrickkabwe merged 2 commits into
mainfrom
feat/graphiql-6
Nov 10, 2026
Merged

patrickkabwe merged 2 commits into
mainfrom
feat/graphiql-6

Conversation

@patrickkabwe

Copy link
Copy Markdown
Contributor

Upgrades the bundled playground from GraphiQL 5.2.2 to 6.0.1.

  • Uses the new createTransport API (with graphql-ws for subscriptions) in place of the custom fetcher.
  • Removes @graphiql/plugin-explorer, which is not published for v6; the built-in query builder replaces it.

Tested against the subscriptions example: queries and WebSocket subscriptions work.

Load graphiql@6.0.1 and replace the custom fetcher with the toolkit's
createTransport, using graphql-ws for subscriptions. The explorer plugin
is dropped; GraphiQL 6 ships a query builder by default.
graphql-ws rejects with a raw WebSocket event when the connection cannot
be established, which GraphiQL rendered as {"isTrusted": true}. Convert
it to an Error naming the endpoint; GraphQL errors pass through as-is.
@patrickkabwe
patrickkabwe merged commit c959df7 into main Nov 10, 2026
4 checks passed
@patrickkabwe
patrickkabwe deleted the feat/graphiql-6 branch November 10, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant