json

exists

Check whether one JSON document exists.

strata json exists

wire json_exists

Returns a boolean status for one JSON document key without loading the stored document.

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

To see the complete help for this command, run:

strata json exists --help

Example

Check whether a document exists.

strata json set user $ {"name":"alice"}strata json exists userstrata json exists absent

Parameters

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

Returns

StatusValue<bool>

  • databoolean
  • 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/exists.md