cacheControl
Cache hint: how long a shared cache may serve data owned by this type/field. The response max-age is the minimum across all selected fields.
directive @cacheControl(
currencyDependent: Boolean
inheritMaxAge: Boolean
maxAge: Int
) on
| FIELD_DEFINITION
| INTERFACE
| OBJECT
Arguments
cacheControl.currencyDependent ● Boolean scalar
Values are converted into the customer currency — currency must stay in the cache key.
cacheControl.inheritMaxAge ● Boolean scalar
Value-object marker — inherits volatility from the surrounding selection.
cacheControl.maxAge ● Int scalar
Freshness window in seconds.