1
0
mirror of https://github.com/balkian/gists.git synced 2024-10-31 23:51:44 +00:00
gists/*new*.txt
J. Fernando Sánchez 420a02bd84
2015-03-14 01:18:56 +01:00

1 line
118 B
Plaintext

db.<collection_name>.find().forEach(function(d){ db.getSiblingDB('<new_database>')['<collection_name>'].insert(d); });