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 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -