spring-projects / spring-graphql

Spring Integration for GraphQL
https://spring.io/projects/spring-graphql
Apache License 2.0
1.53k stars 306 forks source link

support for permalinks #1045

Closed SimonSiefke closed 2 months ago

SimonSiefke commented 3 months ago

GraphiQL allows users to generate permalinks for specific queries, enabling easy sharing and revisiting of GraphQL operations. This feature is very useful for debugging and documentation, as it allows queries and variables to be encoded directly in the URL (e.g., GraphiQL SWAPI Example).

graphql2

bclozel commented 3 months ago

As far as I can see there is no GraphiQL plugin that does this and this is powered by inline JavaScript on that instance. I'm not against it, but I would understand if some developers would be annoyed by an ever changing URL in the address bar of their browser.

We'll discuss that as a team. If other community members have an opinions about this, please comment on this issue.

bclozel commented 2 months ago

We have discussed this as a team today and we're going to decline this enhancement request.

Our GraphiQL default setup should be minimal and only rely on well-known plugins maintained by the community. This particular feature is managed by inline JS (you can check it out by using "show source" on that page) that's easily reusable with your own GraphiQL setup.

Thanks for this proposal!