Json
JSON.MGET
Get the same path from multiple JSON documents.
const values = await redis.json.mget(["key1", "key2"], "$.path.to.somewhere");
Arguments
keys
...string[]
requiredOne or more keys of JSON documents.
path
string
default: "$"The path to get from the JSON document.
Response
The values at the specified path or null
if the path does not exist.
Was this page helpful?
const values = await redis.json.mget(["key1", "key2"], "$.path.to.somewhere");