Skip to content

Conversation

dondonz
Copy link

@dondonz dondonz commented Oct 12, 2025

Adds support for GraphQL request extensions. Adds a tab to the UI to allow users to send extensions alongside their GraphQL request, similar to variables and headers.

Extensions

extensions is a map that can be included in the GraphQL request, and is part of the GraphQL-over-HTTP spec but not yet implemented in GraphiQL. It's handy for sending non-typed extra information inside the GraphQL payload. It's particularly useful if you can't rely on URL params or headers to pass along additional information. Spec link: https://graphql.github.io/graphql-over-http/draft/#sec-Request-Parameters

This PR addresses #3372 and is an updated version of #3409

I am not very familiar with React nor TypeScript so please let me know your comments. I've also manually tested by running GraphiQL locally and inspecting the outgoing GraphQL request in the network tab as shown in the picture above.

@changeset-bot
Copy link

changeset-bot bot commented Oct 12, 2025

🦋 Changeset detected

Latest commit: ecb2b92

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@graphiql/react Minor
graphiql Minor
@graphiql/toolkit Minor
@graphiql/plugin-history Major
@graphiql/plugin-code-exporter Major
@graphiql/plugin-doc-explorer Major
@graphiql/plugin-explorer Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dondonz dondonz changed the title Request extensions oct 2025 Add request extensions Oct 12, 2025
/**
* A hash that is unique for a combination of the contents of the query
* editor, the variables editor and the request headers editor (i.e., all the editor
* editor, the variables editor, the request headers editor, and the extensions editor (i.e., all the editor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* editor, the variables editor, the request headers editor, and the extensions editor (i.e., all the editor
* editor, the variables editor, the request headers editor, and the extensions editor (i.e., all the editors

@dondonz
Copy link
Author

dondonz commented Oct 20, 2025

@dimaMachina following on from our previous discussion, could you help me review this PR?

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.

2 participants