📅  最后修改于: 2022-03-11 15:00:38.200000             🧑  作者: Mango
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" } })