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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -