rename-collection
Change the name of a MongoDB collection to reorganize data or improve naming conventions. Specify database, current collection name, and new name.
Instructions
Renames a collection in a MongoDB database
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name | |
| newName | Yes | The new name for the collection | |
| dropTarget | No | If true, drops the target collection if it exists |