Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. MongoClient.connect(some url, function(err,db){
  2. db.collection(collection_name).find({},{},sort criteria).toArray(){
  3. .... find the data and append to an array
  4. .... this data inside a for loop
  5. db.collection(collection_name).update(data[i], {$set...}, callback)
  6. }
  7. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement