cacheKeyForField

abstract fun cacheKeyForField(context: ResolverContext): CacheKey?

Returns the computed cache key for a composite field.

If the field is of object type, you can get the object typename with field.type.rawType().name. If the field is of interface or union type, the concrete object typename is not predictable and the returned CacheKey must be unique in the whole schema as it cannot be namespaced by the typename anymore.

If the returned CacheKey is null, the resolver will use the default handling and use any previously cached value.