Seba
Seba
Hello. You are using ``` RecipeIngredient::whereNotIn('id',$ingredients_updated) ->where('recipe_id',$recipe->id) ->delete(); RecipeDirection::whereNotIn('id',$directions_updated) ->where('recipe_id',$recipe->id) ->delete(); ``` and why not just ``` $recipe->ingredients()->sync($ingredients_updated); $recipe->directions()->sync($directions_updated); ``` insted?
- Laravel-mongodb Version: 3.8.5 - PHP Version: 8.0 - Database Driver & Version: 4.2.3 ### Description: I'm using raw query to get data from DB. There is a few `$lookup`...