I have collection in mongodb like below:
{
"_id": "xyz",
"title" : "title+",
"foodBeverage" : [
"Expert 1"
],
"cuisine" : [
"Afghan",
"American",
"Asian",
"Bistro"
]
}
I want to with below array:
var arr1 = ["Asian"];
I want query to match using arr1. Like if value in arr1 exist in collection with cuisine, then return result.
Hope you get how I want filter.
Could any one assist.
thanks in advance.