I have any array coming from user wit ingredients in it. I have two collection name one is recipe collection where i stored recipes with ingredients name. so I am able to search that array in recipe collection. But I have another collection name Nutrition where I have nutrition food or you can say ingredient so I have to search name of the ingredient from the nutrition collection which are same a coming req array. like my coming array is ['salmon','fish','almonds'] so I have to search there array elements in mu nutrition collection and my nutrition collection is like
{"name":"Egg","protein:6,"carbs":8,"calorie":72}
so I have to compare array elements with name fields