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

Using $set on a nested field path, what is the result of this update on { _id: 1, profile: { city: "Paris" } }?

db.users.updateOne( { _id: 1 }, { $set: { "profile.country": "France" } } )