简体   繁体   中英

Mongo $nin query with case insensitivity

I'm using this $nin query for case insensitivity. but not work

first_name: { $nin: [ "/^rahul/i", "/^Bhosale/i" ] }

with this query execution I was unable to found case insensitive.

So please suggest me with appropriate Query for case insensitive in $nin .

删除报价,成为

first_name: { $nin: [ /^rahul/i, /^Bhosale/i ] }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM