Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

EntityField

EntityField<Record> = Record extends unknown ? { [Key in keyof Record & string]: Key | NestedField<Key, NonNullable<ListItem<Record[Key]>>> }[keyof Record & string] : never

A field of Record, or a field one level into a record or a list of records it holds, written with a dot: "hits.source" names the source of each hit in hits.

Type Parameter
Record