Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardMongoDBthe replica set oplogSingle-choice MCQ

A single client update updates 3 documents with one multi:true update command. How is this represented in the oplog, and why?

db.accounts.updateMany({ region: 'EU' }, { $inc: { balance: 10 } }) // affects 3 docs -> 3 distinct oplog entries