KeyArgumentsCacheResolver

constructor(keyArgumentsProvider: KeyArgumentsProvider, keyScope: CacheKey.Scope)

Parameters

keyArgumentsProvider

provides the key arguments for a given field

keyScope

the scope of the computed cache keys. Use CacheKey.Scope.TYPE to namespace the keys by the schema type name, or CacheKey.Scope.SERVICE if the ids are unique across the whole service.