Shrink GraphQL Requests with Automatic Persisted Queries
Send query hashes instead of full GraphQL documents on repeat requests to save bandwidth and improve cache hits.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Send query hashes instead of full GraphQL documents on repeat requests to save bandwidth and improve cache hits.
Automatic persisted queries in Apollo Client send a SHA-256 hash via GET and fall back to POST when the server does not recognize the hash. Because the HTTP specification does not define a maximum URL length, Apollo Server 4.x does not proactively reject long GET request URIs. Instead, an error surfaces only when the underlying Node.js or Express layer throw