[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / recordHistory

# Function: recordHistory()

> **recordHistory**(`options`): `Promise`\<[`HistoryEntry`](../interfaces/HistoryEntry)[]\>

Defined in: [admin/src/history.ts:68](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/history.ts#L68)

Read a record's history, newest first.

Returns an empty list rather than throwing when the audit package isn't
installed or its table doesn't exist yet — a missing history is a missing
section, not a broken page.

## Parameters

### options

[`HistoryOptions`](../interfaces/HistoryOptions)

## Returns

`Promise`\<[`HistoryEntry`](../interfaces/HistoryEntry)[]\>
