https://www.mongodb.com/es/docs/upcoming/reference/command/renamecollection/
renameCollection (database command) - Database Manual - MongoDB Docs
Rename an existing collection in MongoDB using the `renameCollection` command, specifying the source and target namespaces, with options for dropping the...
databasecommandmanualmongodbdocs