猫鼬分页不区分大小写

时间:2019-07-17 20:20:13

标签: mongoose mongodb-query

我想用猫鼬订购查询,但是区分大小写。例如,将大写单词优先于大写单词:即使我在查询中使用[" Astring "," String "," astring "],查询也会返回此顺序caseLevel

MyModel.paginate(query, {sort, page, limit, collation = {caseLevel: true}});

谢谢您的帮助!

0 个答案:

没有答案