question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permalinks (share URL link)?

See original GitHub issue

According 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
benjiecommented, Jan 24, 2020

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

1reaction
acaocommented, Jan 14, 2020

@gilesbradshaw we moved the examples around.

You’ll find an example of how to do this in packages/graphiql/resources/renderGraphiQL.js

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found