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

A user document is `{ _id: 5, name: "Ada", age: 30 }`. What is the result of this update?

db.users.replaceOne( { _id: 5 }, { name: "Ada Lovelace" } )