cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

request: Support HTTP GET for persisted queries

Open jeffutter opened this issue 1 year ago • 1 comments
trafficstars

Component(s)

router

Is your feature request related to a problem? Please describe.

To facilitate CDN caching, we would like to have support for requesting persisted queries via HTTP Get requests.

Furthermore, some of our existing clients use this scheme and without this ability, a seamless migration to cosmo is not possible.

Describe the solution you'd like

We would like to see something similar to https://graphql.org/learn/serving-over-http/#get-request but supporting persisted queries.

Specifically supporting URLs like: https://domain.com/graphql/persisted_queries/:query_hash with variables as a query argument, the value of which is a JSON encoded map of variables.

Describe alternatives you've considered

No response

Additional context

No response

jeffutter avatar May 16 '24 20:05 jeffutter

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.

github-actions[bot] avatar May 16 '24 20:05 github-actions[bot]

HTTP GET is now supported for Queries in line with how Apollo implemented it.

jensneuse avatar Sep 09 '24 14:09 jensneuse