rename-collection
Renames a MongoDB collection within a specified database, optionally replacing an existing collection with the same name. Simplifies collection management tasks in MongoDB Atlas.
Instructions
Renames a collection in a MongoDB database
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name | |
dropTarget | No | If true, drops the target collection if it exists | |
newName | Yes | The new name for the collection |