Swap Meals
Replaces recipes on an existing meal plan
Use the swapMealPlanRecipe
mutation to replace a recipe in an existing Meal Plan.
Replace a single recipe on a specific day and meal by using the mealId
argument or replace all recipes for every day of the meal plan for a specific meal by using the mealTag
argument.
Available Arguments
Arguments | Type | Is required? | Description |
| ID | Yes | The new recipe ID |
| ID | No | The meal ID (from the meal plan) to be replaced |
| Int | No | Number of servings to be changed. |
| MealTimeType | No | BREAKFAST, SNACK, LUNCH, DINNER |
This mutation is commonly used in combination with the SimilarMacrosRecipe query to replace existing recipes with equivalents.
Example
Last updated