Remove and return an element from the index in the array. By default the last element from an array is popped.
const element = await redis.json.arrpop("key", "$.path.to.array");
The key of the json entry.
The path of the array.
The index of the element to pop.
The popped element or null if the array is empty.
Was this page helpful?