Can anyone suggest a way to retrieve all values from the specific key (_id) within an array? Here is the array:
"users" : [
{ "_id" : "LqTE6we2TYaA3v23K" },
{ "_id" : "knfoWfpn5Y9niSgae" },
{ "_id" : "NkHWuyRCpxCvCHJcA" },
{ "_id" : "YQF6BaCA9Xc8aaYTY" },
{ "_id" : "mceWvJgGfpH3XB4mh" },
{ "_id" : "zAWoF3BiLpAAv4vmP" },
{ "_id" : "c4fLw7TfkGu9jdbFT" }
]
I would like to get this result:
[ 'LqTE6we2TYaA3v23K', 'knfoWfpn5Y9niSgae', 'NkHWuyRCpxCvCHJcA', …]
If possible, I am looking for a solution that does not involve looping over the array. Any guidance on achieving this would be very helpful.