support queries over HTTP GET
See original GitHub issueGraphql Engine returns {"path":"$","error":"resource does not exist","code":"not-found"}
when using {useGETForQueries:true}
Apollo Link options.
Is it possible to enable GET requests endpoints for Hasura engine?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:18 (6 by maintainers)
Top Results From Across the Web
The HTTP QUERY Method - IETF
This specification defines a new HTTP method, QUERY, as a safe, idempotent request method that can carry request content.
Read more >Making GraphQL Requests using HTTP Methods
In this post, we'll learn how to make GraphQL requests over HTTP with just GET and POST methods. We'll also discuss the limitations...
Read more >HTTP Methods GET vs POST - W3Schools
GET is used to request data from a specified resource. Note that the query string (name/value pairs) is sent in the URL of...
Read more >Serving over HTTP - GraphQL
HTTP is the most common choice for client-server protocol when using GraphQL because of its ubiquity. Here are some guidelines for setting up...
Read more >Proposal for HTTP QUERY Verb - Linked Data Platform
Clients can determine whether a server supports the QUERY method by making an OPTIONS request on the server URL or a dataURL. This...
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 Free
Top 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
Is this on the roadmap? It would be massively useful to be able to use commodity CDN services like Cloudflare with Hasura Engine.
Seconding @ontofractal 's point. Cloudflare will not cache POST requests, they only cache based on the URL. An option to process GET requests would be helpful. Apollo Client, for example, has the option useGETForQueries, for the very reason that setting up caching is easier with GET requests.
I was about to setup Hasura in production when I noticed this is not currently possible. If anyone knows a workaround, I’d love to hear it. Thanks!