We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c8dbbd commit f3a5291Copy full SHA for f3a5291
1 file changed
src/modules/food/food.service.ts
@@ -105,12 +105,11 @@ export class FoodService extends DB {
105
as: 'ingredient',
106
in: {
107
id_ingredient: '$$ingredient.id_ingredient',
108
- quantity: '$$ingredient.quantity',
109
name: {
110
$arrayElemAt: [
111
'$ingredients.name',
112
'$$ingredient.id_ingredient',
113
- ], // Assuming 'ingredients' is the array of ingredients
+ ],
114
},
115
116
0 commit comments