📜  使用 pymongo 更新字典 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:38.200000             🧑  作者: Mango

代码示例1
To specify a  in an embedded document or in an array, use dot notation.
For the document matching the criteria _id equal to 100, the following
operation updates the make field in the details document:


db.products.update(
{ _id: 100 },
{ $set: { "details.make": "zzz" } })