Cached results can serve read-heavy workloads with complex queries to improve performance. This refers to external caching at the browser/CDN level
@cacheControl(maxAge: int)
directive at the top of your query. This directive
adds the appropriate Cache-Control
HTTP headers to the response, so that
browsers and CDNs can cache the results.
For example, the following query defines a cache with TTL of 15 seconds.