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
recipeId
ID
Yes
The new recipe ID
mealId
ID
No
The meal ID (from the meal plan) to be replaced
servings
Int
No
Number of servings to be changed.
mealTag
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