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

To specify a string as an array value to append, wrap the quoted string with an additional set of single quotes. Example: ‘“silver”‘.

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.