Regarding Collation in Database

Is Collation can be used while creating Database in MongoDB?

Just verified in MongoDB Websites, I am not able to find. If Collation allowed with different language, Kindly assist with sample/Syntax for the same.

Collation is at Collection level. Refer to the documentation below for creation and supported languages:
https://docs.mongodb.com/manual/reference/method/db.createCollection/
https://docs.mongodb.com/manual/reference/collation-locales-defaults/

1 Like