Posted By

systemride on 11/09/11


Tagged

mongodb


Versions (?)

Mongo copy collection


 / Published in: JavaScript
 

  1. db.coll1.find().forEach( function(x){db.coll2.insert(x)} )

Report this snippet  

You need to login to post a comment.