Skip to content

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 ​

Properties ​

at ​

readonly at: Date

UTC timestamp of the operation.


changes ​

readonly changes: 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 ​

readonly method: "patch" | "copy" | "populate"

Which QModel operation caused the change.