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

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

python - Terminate a gnome-terminal opened with subprocess -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -