简体   繁体   English

如何在集合中找到特定的 object 并在 MongoDB 中更新它

[英]How to find a particular object in in collection and update it in MongoDB

If this is my db collection { _id: ObjectId("*********"), name: 'xyz', owner: 'abc', Shop Number: 56, stock: 43 } and i want to update it with area field so how to write query to find the collection and update it with area如果这是我的数据库集合 { _id: ObjectId("*********"), name: 'xyz', owner: 'abc', Shop Number: 56, stock: 43 } 我想更新它带有区域字段,因此如何编写查询以查找集合并使用区域更新它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM