Mongoose/MongoDB 如何做不区分大小写的唯一索引?类似MySQL的 utf8_general_ci
1 回复
可以使用text search :)
If the index language is English, text indexes are case-insensitive for non-diacritics; i.e. case insensitive for [A-z].