Database
db={"ingredents":[{"_id":ObjectId("6217198cb27098f71a407720"),"IngredientId":101,"MoreData":{"Details":"This is details for 101"}},{"_id":ObjectId("6217198cb27098f71a407723"),"IngredientId":102,"MoreData":{"Details":"This is details for 102"}},{"_id":ObjectId("6217198cb27098f71a407726"),"IngredientId":103,"MoreData":{"Details":"This is details for 103"}}],"recipe":[{"_id":ObjectId("6217196eb27098f71a407703"),"RecipeID":0,"recipeName":"Ramen","IngredientIds":[101,103]},{"_id":ObjectId("6217196eb27098f71a407706"),"RecipeID":1,"recipeName":"FireNoodle","IngredientIds":[102,103]}]}
Query
db.recipe.aggregate([{$match:{"RecipeID":0,"recipeName":"Ramen"}},{$lookup:{from:"ingredents",localField:"IngredientIds",foreignField:"IngredientId",as:"IngredientIds"}},{$project:{_id:0,RecipeID:"$RecipeID",recipeName:"$recipeName",IngredientIds:{IngredientId:1,MoreData:1}}}])