help again!!!
假設有以下 json
{ "_id": "apples", "qty": { "cat": "A", "cat":"B" } }
{ "_id": "bananas", "qty": { "cat": "B", "cat":"C" } }
{ "_id": "oranges", "qty": { "cat": "A", "cat":"E" } }
{ "_id": "avocados", "qty": { "cat": "D", "cat":"F" } }
咁我就咁寫個find
db.collection.find({
"qty" : { cat:"A", cat:"B"
}});
但係個result 點解會return
apples, bananas, oranges
其實我只想要apples
 |