Arguments
string
required
The key of the json entry.
string
required
The path of the boolean.
$ is the root.Response
The new value of the boolean.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const bool = await redis.json.toggle("key", "$.path.to.bool");
Toggle a boolean value stored at path.
$ is the root.const bool = await redis.json.toggle("key", "$.path.to.bool");
Was this page helpful?