db.collection.updateMany( <query>, { $set: { status: "D" }, $inc: { quantity: 2 } }, ... ) Update with an Aggregation Pipeline Starting in MongoDB 4.2, the db.collection.updateMany() method can accept an aggregation pipeline [ <stage1>, <stage2>, ... ] that specifies the ...