await redis.json("key", "$.path.to.array", "a");

Arguments

key
string
required
The key of the json entry.
path
string
default:"$"
The path of the array.
value
...TValue[]
required
One or more values to append to the array.

Response

The length of the array after the appending.
await redis.json("key", "$.path.to.array", "a");