SyntaxFix
Write A Post
Hire A Developer
Questions
An easy way would be to use $toLower as below.
db.users.aggregate([ { $project: { name: { $toLower: "$name" } } }, { $match: { name: the_name_to_search } } ])