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

ReadEachCallback

ReadEachCallback<T> = (traits, entity, index) => void

What readEach’s callback is handed: each record read-only at any depth, as entity.get reads it.

Type Parameter
T extends QueryParameter[]
Parameter Type
traits DeepReadonly<InstancesFromParameters<T>>
entity Entity
index number

void