News for hackers. Stuff that matters.
Re:GraphQL Is a Trap? by jensneuse on Friday May 06, 2022 @02:53PM (#31288551)
Here's how we do it: https://wundergraph.com/docs/overview/features/caching We "persist" all operations using their name (unique) as part of the path. Variables are passed via query parameters. We also add a unique hash as query param which is generated by the configuration. This way, each "iteration" of the application invalidates the cache automatically. Additionally, we generate ETags for each request to reduce response payloads to zero when nothing changed. (https://wundergraph.com/docs/overview/features/automatic_con...) Combined with the generated type-safe client, this is a very solid setup.

There are no comments on this comment yet.