Database

db={stocks:[{remaining:2,costPerItem:5},{remaining:3,costPerItem:2},{remaining:0,costPerItem:3}]}

Query

db.collection.find()

Result