CacheKeyGeneratorContext

fun CacheKeyGeneratorContext(field: CompiledField, variables: Executable.Variables)

Parameters

field

the field representing the object or for lists, the field representing the list. field.type is not always the type of the object. Especially, it can be any combination of com.apollographql.apollo3.api.CompiledNotNullType and com.apollographql.apollo3.api.CompiledListType. Use field.type.rawType() to access the type of the object. For interface fields, it will be the interface type, not concrete types.

variables

the variables used in the operation where the object is normalized.