json

history

Read retained version history for one JSON document.

strata json history

wire json_history

Returns retained full-document history rows for a JSON document, newest first, including delete tombstones. A document with no retained history maps to an optional-read result.

Optional reads distinguish present data from missing data. When version or timestamp facts exist on the executor output, SDK mappings should preserve them.

To see the complete help for this command, run:

strata json history --help

Example

A document that never existed has no history.

strata json history absent

Parameters

NameTypeRequiredDescription
keystringyesDocument key.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

Maybe<Vec<JsonHistoryItem>>

  • dataarray or null
  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

← All 16 JSON commands

agents: this page as markdown → /docs/reference/json/history.md