Last active
December 24, 2015 18:49
-
-
Save slimflem/6845281 to your computer and use it in GitHub Desktop.
duplicate MongoDB collection: http://docs.mongodb.org/manual/faq/developers/#how-do-you-copy-all-objects-from-one-collection-to-another
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.people.find().forEach( function(x){db.user.insert(x)} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment