Hello,
I have a question about how to query partial matches in an array (new to MongoDB).
I have the following structure in my database where each recipe is built up similar to this:
Now I am trying to match a given ingredients list for example: [‘water’, “tomatoes”], but I am stuck on how to properly query this. It should return me each recipe in the database that has one or more partial matching strings in the ingredients array in the database.
What would be the cleanest solution for this problem?
Thanks in advance,
Sebastiaan