Answers for "should you use case insensitive index or regex ? mongo"

1

mongodb regex case insensitive word

{name:{'$regex' : '.*string.*', '$options' : 'i'}}
Posted by: Guest on April-29-2021
0

mongodb regex case insensitive

db.collection.find({name:{'$regex' : '^((?!string).)*$', '$options' : 'i'}})
Posted by: Guest on July-31-2020

Code answers related to "should you use case insensitive index or regex ? mongo"

Browse Popular Code Answers by Language