Mongo unique index case insensitive

Prior of MongoDB version 3.4 we were unable to create index with case insensitive. In version 3.4 has collation option that allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks. The collation option has the following syntax: collation: { locale: <string>, caseLevel: <boolean>, caseFirst: <string>, strength: <int>, … Read more