How do you copy all objects from one collection to another?
In the mongo shell, you can use the following method to copy the entire collection:
db.source.copyTo(newCollection)
Note: When using db.collection.copyTo() check field types to ensure that the operation does not remove type information from documents during the translation from BSON to JSON.