Home / Companies / Apollo / Blog / Post Details
Content Deep Dive

Persisted GraphQL Queries with Apollo Client

Blog post from Apollo

Post Details
Company
Date Published
Author
Dhaivat Pandya
Word Count
1,720
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

Persisted queries in Apollo Client allow clients to send only the ID of a query, rather than the entire query document, to the server. This reduces bandwidth usage and improves security by preventing malicious queries from being executed. The `persistgraphql` tool analyzes GraphQL documents at build time, creates a mapping between queries and IDs, and provides a network interface that can be used to send only the query ID to the server. The server receives the query ID and uses it to look up the corresponding query in the map data structure, sending back the actual query document as needed. By using persisted queries, clients can save bandwidth and improve security without sacrificing performance or developer experience.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Developer Experience 1 8 4 4 -11%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.