Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyMongoDBupdateOne and $setSingle-choice MCQ

A collection has a document { _id: 1, name: "Ada" }. What happens when you run the update below?

db.users.updateOne( { _id: 1 }, { $set: { age: 30 } } )