Example:
> db.stuff.save({\"foo\":\"bar\"}); > db.stuff.find({\"foo\":\"bar\"}).count(); 1 > db.stuff.find({\"foo\":\"BAR\"}).count(); 0
As you can see in mongo docs - since version 3.2 $text index is case-insensitive by default: https://docs.mongodb.com/manual/core/index-text/#text-index-case-insensitivity
$text
Create a text index and use $text operator in your query.