How to limit the number of document updates?
Hi
I want to limit the number of document updates in one command.
for example
db.users.updateMany(
<filter>,
<update>,
{
limit : 100
}
);
https://www.mongodb.com/community/forums/t/how-to-limit-the-number-of-document-updates/102204/3
24
votes
![](https://secure.gravatar.com/avatar/cce61130da60abe62d60f5a8f685c07c?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)