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

What does updateOne do when more than one document matches the filter?

db.orders.updateOne( { status: "pending" }, { $set: { status: "shipped" } } )