Why $or is not working properly in mongoose with regular expression
I’m trying to fetch documents which contain whatever I pass in url for filter which must present in title field or in tasks array of those documents: example: localhost:4000/search?filter=Morning. here I’m looking for documents which contain Morning in their title or in their tasks. But when I’m hitting the Api it is returning me all… Read More Why $or is not working properly in mongoose with regular expression