MongoDB updates exercise.
Ready — edit the code above and click Run.
db.products.updateMany({ price: { $gte: 170 } }, { $set: { tier: "premium" } });
Try solving on your own first, then reveal the official answer.
MongoDB shell syntax for interviews.