Retrieve multiple queried elements in an object array in MongoDB collection
问题 I want to find all zone data with "AHU":"C". First, I query without projection and get these. > db.buildings.find({"zone.AHU": "C"}).pretty() { "_id" : ObjectId("5aba4460a042dc4a2fdf26cd"), "name" : "Test Street", "coordinate" : [ 12, 31 ], "yearlyEnergyCost" : 1444, "zone" : [ { "name" : "AHU-C-Z2", "_id" : ObjectId("5aba4460a042dc4a2fdf26ce"), "AHU" : "C", "precooling" : [ ], "subZone" : [ ] }, { "name" : "AHU-D-Z1", "_id" : ObjectId("5abc7528100730697163a3ab"), "AHU" : "D", "precooling" :