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

What does this updateOne do to a document that has { _id: 1, name: "Sue" } and no matching filter on price?

db.products.updateOne( { _id: 99 }, { $set: { price: 10 } }, { upsert: true } )