node.js - Node, Mongodb, Limiting updatemany to the first 500 entries -


is there way in node using native mongodb driver limit update many operation first 500 entries?

right update many line looks

col.updatemany({$exists : {available : false}}, {$set : {available : "na"}}, function(){}); 

is there way limit number of documents searches , updates?

thanks!


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

c# - Can I intercept a SOAP response in .NET before a content type binding mismatch ProtocolException? -

css - Can I use the :after pseudo-element on an input field? -