Mongo DB查询数组中的对象
https://docs.mongodb.com/manual/tutorial/query-array-of-documents/
db.inventory.insertMany( [
{ item: "journal", instock: [ { warehouse: "A", qty: 5 }, { warehouse: "C", qty: 15 } ] },
{ item: "notebook", instock: [ { warehouse: "C", qty: 5 } ] },
转载
2020-07-14 22:15:43 ·
1337 阅读 ·
0 评论