quickmodel / IQHistoryEntry
Interface: IQHistoryEntry
A single mutation record captured by the history trail.
Each entry describes one operation ($qPatch, $qCopy, or $qFrom) that caused one or more field changes, storing the serialized before/after values for every changed field and the timestamp of the operation.
With recordMode: 'field' each entry's changes map contains exactly one key; with the default 'operation' mode all fields changed in one call are grouped into a single entry.
See
- IQHistoryHandle — the container that holds a list of these entries
- IQHistoryConfig — configuration that controls recording behaviour
Properties
at
readonlyat:Date
UTC timestamp of the operation.
changes
readonlychanges:Readonly<Record<string, {from:unknown;to:unknown; }>>
Map of every field that changed during this operation. Key = field name, value = { from, to } with serialized before/after values.
In 'operation' mode (default) this map may contain multiple keys. In 'field' mode this map always contains exactly one key.
method
readonlymethod:"patch"|"copy"|"populate"
Which QModel operation caused the change.