Answers for "update a dictionary using pymongo"

0

update a dictionary using pymongo

To specify a <field> 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" } })
Posted by: Guest on April-13-2021

Browse Popular Code Answers by Language