I have a collection like
{
"email" : "sh@Gmail.com"
}
My query should be like , it has to find matching email irrespective of case whether its capital or small but it should match exactly.
In sql we will do like where Lower(strEmail) = Lower(@emailParameterPassed) to satisfy this same.
UPDATE
I got it here. Thanks
How to achieve this in mongoDb?
I am using c# native driver with mongoDb ?