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.

RFC: Persisted Fetch - support GET for hashed queries

See original GitHub issue

Summary

New Persisted fetch exchange is awesome, but it is missing support for GET for hashed queries that prevents us from using it.

In our use-case we want to use standard POST queries when query is not persisted (to avoid super long urls which cause issues on some devices) but GET for persisted (hashed) queries so it can be cached on CDN. Apollo Client supports this behaviour with useGETForHashedQueries option

Proposed Solution

Implement useGETForHashedQueries option similar to Apollo.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
kittencommented, May 12, 2020

This has just been released: https://github.com/FormidableLabs/urql/releases/tag/%40urql%2Fexchange-persisted-fetch%401.0.0 Do take care as it’s a small breaking change in how the exchange is instantiated 😉

0reactions
jakubriedlcommented, May 12, 2020

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC: Persisted Fetch - support GET for hashed queries ...
Summary New Persisted fetch exchange is awesome, but it is missing support for GET for hashed queries that prevents us from using it....
Read more >
Persisted Queries Link - Apollo GraphQL Docs
If you want to use GET for non-mutation queries whether or not they are hashed, pass useGETForQueries: true option to HttpLink instead. If...
Read more >
GraphQL, Auto Persisted Queries, CDN Support and ...
Client sends APQs request with a hash value of the query document, server lookup the query table for corresponding query document. if query...
Read more >
RFC 8620: The JSON Meta Application Protocol (JMAP)
... Protocol (JMAP) Abstract This document specifies a protocol for clients to efficiently query, fetch, and modify JSON-based data objects, with support ......
Read more >
Signing and authenticating REST requests
HMAC-SHA1 is an algorithm defined by RFC 2104 - Keyed-Hashing for Message ... For a request that does not address a bucket, such...
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