Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node redisjson get properties of array object

await redisClient.json.get(key, {
  path: '$[*].["id","timestamp"]',
})

// Returns
['[id1]', '[timestamp1]', '[id2]', '[timestamp2]'...]
 
PREVIOUS NEXT
Tagged: #node #redisjson #properties #array #object
ADD COMMENT
Topic
Name
4+6 =