Json
JSON.TOGGLE
Toggle a boolean value stored at path
.
const bool = await redis.json.toggle("key", "$.path.to.array");
Arguments
key
string
requiredThe key of the json entry.
path
string
default: "$"The path of the boolean.
Response
The new value of the boolean.
Was this page helpful?
const bool = await redis.json.toggle("key", "$.path.to.array");