Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyMongoDB$push and $pullSingle-choice MCQ

A document has `nums: [1, 2, 2, 3, 2]`. After running this update, what is `nums`?

db.col.updateOne( { _id: 1 }, { $pull: { nums: 2 } } )