app:record:history
Retrieves the immutable audit log for a record, ordered oldest first
Retrieves the immutable audit log for a record, ordered oldest first
Options
| Name | Type | Description |
|---|---|---|
org_id | string | The organisation ID that scopes the operation |
schema | string | The name of the schema (database) that contains the table |
table | string | The name of the table the record belongs to |
id | string | The unique identifier of the record whose history to retrieve |
Outputs
| Name | Type | Description |
|---|---|---|
items | RecordVersion | The list of historical versions of the record, oldest first |
↳ id | string | Is the unique identifier of this version entry (not the record itself). |
↳ record_id | string | Is the id of the record this snapshot belongs to. |
↳ version | int | Is the monotonic version of the record after this write. Starts at 1 on first insert and increments on every subsequent update or delete. |
↳ op | RecordOp | Identifies which write operation produced this snapshot. |
↳ data | Record | Is the full record state after the operation. Empty on OpDelete when the record could not be re-read. |
↳ user_id | string | Is the user id taken from the write context; empty when not set. |
↳ created_at | Time | Is the UTC timestamp when this version was recorded. |
How is this guide?