Details
-
Improvement
-
Resolution: Done
-
Trivial - P5
-
None
-
None
-
None
-
None
Description
After looking for a command in the docs on moving or copying a collection, the search didn't find anything because it didn't mention that you can move a collection between databases.
db.runCommand( {renameCollection: "sourcedb.mycol", to: "targetdb.mycol"} )
|