Docs menu · Reference

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.

Examples

A document that never existed has no history.

CLI

$ strata json history absent

Wire

{"key":"absent","type":"json_history"}

Parameters

NameTypeRequiredDescription
keystringyesDocument key.

Plus the optional scope: branch and space (default to the session branch and the "default" space).

Returns

Maybe<Vec<JsonHistoryItem>> — a miss returns nothing rather than raising.

Errors

Invocation

  • CLI: strata json history
  • Wire type: json_history

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