Convert url query string to MongooseJs friendly query object including advanced filtering, sorting, population, string template, type casting and many more...
you need to enclose it in the filter query string parameter and in JSON format. E.g.:
customer?filter={"$or":[{"key1":"/valu/i"},{"key2":"value2"}]}&active=true
Someone can help me, I want to do a OR from request URI. I tried again and again but without success.
for example (with regex) :
customer?$or="[{"key1":"/valu/i"},{"key2":"value2"}]"&active=true
Thanks in advance.