FieldKeyGenerator

A generator for field keys.

Field keys uniquely identify fields within their parent Record. By default they take the form of the field's name and its encoded arguments, for example hero({"episode": "Jedi"}) (see CompiledField.nameWithArguments).

A FieldKeyGenerator can be used to customize this format, for instance to exclude certain pagination arguments when storing a connection field.

Inheritors

Functions

Link copied to clipboard
abstract fun getFieldKey(context: FieldKeyContext): String

Returns the field key to use within its parent Record.