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

What does this `$pull` do to the array?

// before { _id: 1, nums: [1, 2, 3, 2, 1] } db.t.updateOne({ _id: 1 }, { $pull: { nums: 2 } })