Skip to main content

Arguments

key
string
required
The key of the json entry.
path
string
required
The path of the boolean. $ is the root.

Response

The new value of the boolean.
const bool = await redis.json.toggle("key", "$.path.to.bool");