Docs menu · Reference

Checks whether one event sequence exists in the selected branch and space without returning the record.

Status commands return a scalar or compact status payload and do not mutate database state.

Examples

Check whether an event sequence exists.

CLI

$ strata event append user.created {"id":1}
$ strata event exists 0
$ strata event exists 999

Wire

{"event_type":"user.created","payload":{"id":1},"type":"event_append"}
{"sequence":0,"type":"event_exists"}
{"sequence":999,"type":"event_exists"}

Parameters

NameTypeRequiredDescription
sequenceintegeryesEvent sequence.

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

Returns

StatusValue<bool>.

Errors

Invocation

  • CLI: strata event exists
  • Wire type: event_exists

agents: this page as markdown → /docs/reference/event/exists.md