I'm building an e-commerce website where client can browse and filter products.
Well i'm trying to get a response from MongoDB (products list) with a Query, example: http://localhost:3000/Products/Tshirt
, and i should get only products with category= Tshirt
.
My problem is: when i write in the Query tshirt
(with lowercased t), i get no response at all. Which means that the Query string should be exactly same as the one in my database. How to make the Query ignores lowercase and uppercase?