[graphiql] optional fetcher, user network configuration tab
Author: acaoCreated Oct 8, 2022Updated Apr 23, 2026
Labelsenhancementpotential plugingraphiqlplugin proposal
A long requested feature, and what we envisioned for the sidebar plugin ecosystem a few years ago, is a place where users can configure their environments and settings for each environment
the network tab would provide a global setting for:
- default initial headers for each operation (that would show up in the headers tab)
- HTTP POST or GET for queries? http spec
- whether to persist the headers for that environment
- whether to add
Accept: application/graphql-response+jsontransparently
the network tab would provide per-environment settings for:
- url
- default initial headers for each operation (that would show up in the headers tab)
- HTTP POST or GET for queries? http spec
- whether to persist the headers for that environment
How will this impact GraphiQL?
fetcherbecomes optional ifenvironmentsprop is providedenvironmentsprop looks likegraphql-configobject but maybe stricter (difficult to normalise every pattern)@graphiql/toolkitcreateGraphiQLFetcher()becomes an internal detail ifenvironmentsprop is provided?
Source: graphql/graphiql