Jul-20-2020, 11:04 AM
(Jul-19-2020, 08:53 PM)bowlofred Wrote: Can you give an example of what one of your $regex is set to? Looks like mongo can take the perl-style /$regex/i form.
I made it, after checking 2000 websites, none of them was giving me the answer, and the answer was actually the simplest. Just needed to understand the logic of the syntax:
query={"ingredients": { "$regex": keyword, "$options": "i" }}Thank you!