From Scratch

Send a complete meal plan and define the number of days of it. All the parameters such as days, recipes, etc., have to be introduced manually. All this information is later saved as a template.

Available Arguments

Refer to this document to see the available arguments to use in this mutation.

Examples

Create a meal plan template from scratch

The following example creates a one day meal plan:

mutation {
  createMealPlanTemplate(
    name: "New meal plan template"
    description: "The very first"
    fromScratch: {
      days: [
        {
          meals: [
            {
              recipeId: "UmVjaXBlOmFmMDkzMjQ0LWZkZTMtNGE3Yy1iMTA4LWUxODExNTBkNmNiZQ=="
              mealType: BREAKFAST
              servings: 2
            }
          ]
        }
      ]
    }
  ) {
    message
    success
  }
}

Create a 2-day meal plan

The following example creates a two-day meal plan

The meal plan generated will have the following format:

Last updated

Was this helpful?