1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-25 02:32:28 +00:00
gists/repos/25131ca85f4f86c8d57c/copyMongo.js

1 line
118 B
JavaScript
Raw Normal View History

2015-03-14 00:18:56 +00:00
db.<collection_name>.find().forEach(function(d){ db.getSiblingDB('<new_database>')['<collection_name>'].insert(d); });