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.

support queries over HTTP GET

See original GitHub issue

Graphql 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:open
  • Created 5 years ago
  • Reactions:11
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
ontofractalcommented, Nov 22, 2018

Is this on the roadmap? It would be massively useful to be able to use commodity CDN services like Cloudflare with Hasura Engine.

7reactions
rhakswcommented, May 17, 2019

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!

Read more comments on GitHub >

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

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