Permalinks (share URL link)?
See original GitHub issueAccording to #7, queries in URL are a feature of GraphiQL and I’ve seen them in the wild, for example, in the Pokemon API. But I’ve also encountered several GraphiQL installations that don’t have queries in URLs, e.g., Shopify’s, MongoDB todo list, etc.
In https://github.com/graphql/graphiql/issues/703, it is mentioned that it’s supported via graphiql-rails but is that the only way?
I’m just asking for clarification. On the APIs that support the ?query=
URL links, I find it a bit suspicious that it’s ?
and not #
(I’d imagine queries working purely client-side).
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
3.11 Obtaining URLs (Permalinks) of Shared Files and Folders
Click the Permalinks link at the bottom of the page. Copy one of the available permalinks. After a user clicks the permalink, the...
Read more >Permalinks: Creating Vanity URLs for Videos
Once more click the “Share” option for it. Here you'll want to go to the permalink option and click “Paste Link”.
Read more >Using Permalinks – WordPress.org Forums
Permalinks help to create a URL structure that is easy for both humans and search engines to understand and share. A permalink is...
Read more >The Ultimate Guide to Using WordPress Permalinks - Kinsta
A URL should never change, as it can be stored and shared in many ways. That's the reason why we call them permalinks....
Read more >Email Permalinks - Knowledge Base - Hiver
You can use Permalinks in Hiver to share conversations with others using URLs. You can choose to share content with other users of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve updated my comment above to a link equivalent to what was there before (but permanent). Rikki’s example is better; but it has also moved; it’s now (permalink) here:
https://github.com/graphql/graphiql/blob/bcb27538d9074afdac3ff56074046965b456e57a/packages/graphiql/resources/renderExample.js
@gilesbradshaw we moved the examples around.
You’ll find an example of how to do this in
packages/graphiql/resources/renderGraphiQL.js