Arguments
string
required
The key of the json entry.
string
default:"$"
The path of the boolean.
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.array");
Toggle a boolean value stored at path.
const bool = await redis.json.toggle("key", "$.path.to.array");
Was this page helpful?