CacheKeyGeneratorContext

class CacheKeyGeneratorContext(val field: CompiledField, val variables: Executable.Variables)

The context in which an object is normalized.

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.

Constructors

Link copied to clipboard
fun CacheKeyGeneratorContext(field: CompiledField, variables: Executable.Variables)

Properties

Link copied to clipboard
val field: CompiledField
Link copied to clipboard
val variables: Executable.Variables

XXX: we don't use variables anywhere at the moment. It's not clear how much of a problem that is. Removing this would allow to share the interface with FakeResolver