const myType = await redis.json.type("key", "$.path.to.value");

Arguments

key
string
required
The key of the json entry.
path
string
default:"$"
The path of the value.

Response

The type of the value at path or null if the value does not exist.
const myType = await redis.json.type("key", "$.path.to.value");