Start Over Meal Plan

A user can use the startOverMealPlan mutation to restart the current meal plan.

The mutation selects all the days from the last meal plan, including those with past, current, and future dates, and changes their dates to restart day 1 today. This process "moves" the days to start over instead of duplicating and reassigning them, so the past days from the current meal plan will be moved out of the user's history to be reset as pending days.

To duplicate a past meal plan instead of restarting it, see the parameter repeat in generateMealPlan.

mutation {
  startOverMealPlan {
    success
    message
  }
}

Last updated