Created
September 10, 2021 18:21
-
-
Save caprica/4dcd2e8fd46f1c5a2a0a39956f99d1d0 to your computer and use it in GitHub Desktop.
MongoDB rename collection
This file contains hidden or 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.currentCollectionName.renameCollection("newCollectionName") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment