graphiql: Where did the ?query=
string in the URL go? 🤔
#3094
Unanswered
mfn
asked this question in
Q&A / Support
Replies: 1 comment
-
afaik you have to implement it on your own for now. We did it like this: https://github.com/gatsbyjs/gatsby/blob/7fd887e23f5f1a96489d19cb3e71b045f8ad1512/packages/gatsby-graphiql-explorer/src/app.jsx |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry for this stupid question but I'm kind of lost.
So far I've been using a quite old version, seems from reading the source of the HTML it references
https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.13.0/graphiql.min.js
so there's that.When I use this version, there is the

?query=
automatically updated when I write a query:This is extremely useful and often-used within our teams because, well, easy 😅
I'm now finally upgrading to what I think is a more / the most recent version which references e.g.

//unpkg.com/graphiql/graphiql.min.js
which expands tohttps://unpkg.com/graphiql@2.4.0/graphiql.min.js
But I can't find this feature anymore. Is it gone or did I miss it somewhere?
During writing this question I found #1579 so I'm led to believe after some major version rewrite it hasn't made it in yet? (also found #978 which seems to talk about this)
Do we know if there's a workaround which ideally can be applied at the HTML level locally?
thank you and sorry to bother you 🙏🏼
Beta Was this translation helpful? Give feedback.
All reactions