In MongoDB, you can rename a collection using the `db.collection.renameCollection()` method. Below is a basic syntax of how to use this method:
```
db.collection.renameCollection(newName, dropTarget)
```
Where:
- `collection`is the name of the collection you want to rename.
- `newName` is the STRING that will be the new name of the collection.
- `dropTarget` is an optional boolean parameter. If set to `true`, MongoDB will drop the target of the renameCollection command if that target already exists.
Example:
Let’s say you have a collection named `oldCollection` and you want to rename it to `newCollection`. This is how you would do it:
```
db.oldCollection.renameCollection(“newCollection”)
```
Please note that renaming collections is not usually recommended, especially for large collections, as it is a slow operation and it requires an exclusive lock on the entire database, which will block other operations until it has completed.