How can I extract only the prices from each row?
db -
[{
"id": 1,
"name": "name 2",
"price": 40,
"img": "img.jpeg",
"isActive": true
}, {
"id": 2,
"name": "name 2",
"price": 60,
"img": "img.jpeg",
"isActive": true
}]
Currently, I am able to retrieve all data using db.product.toArray()
.
However, I specifically want to retrieve [40, 60] from Dexiejs indexedDB.