Best way to rename a collection?

I’m thinking I can update the MongoDB directly, but I am not aware of relationships that this could effect.