GraphQL::PersistedQueries
is an implementation of persisted queries for graphql-ruby. With this plugin, your backend will cache all the queries, while the frontend will send the full query only when it was not found at the backend storage.
- Heavy query parameter will be omitted in most cases: network requests will become less heavy.
- Clients share cached queries: it’s enough to miss cache only once for each unique query.
- Works for clients without persisted query support.
Persisted queries in GraphQL: Slim down Apollo requests to your Ruby application
Persisted queries in GraphQL: Slim down Apollo requests to your Ruby application
Read also