User's Meal Plan Settings (deprecated)

Mutation used to set the user's meal plan settings.

CAUTION: Legacy Endpoint!

The profileMealPlanSettings mutation has been deprecated. Use the updateMealPlanSettings instead.

Use the profileMealPlanSettings mutation to update a user's meal plan settings.

Set this value to null if you want to "delete" these settings and default to use the user's goals on the meal plan.

To apply these settings to a meal plan, follow the steps below:

  1. Execute the profileMealPlanSettings mutation.

  2. Generate your meal plan by executing the generateMealPlan mutation or the customMealPlan mutation.

  3. Use the mealPlan query to obtain the meal plan generated.

Arguments

Example

mutation {
  profileMealPlanSettings (
    calories: 1500
    carbsPerc: 0.45
    proteinPerc: 0.25
    fatPerc: 0.3
    omega3Perc: 0.09
	  format: [BREAKFAST, SNACK, LUNCH, SNACK, DINNER]
	  error: 0.05
  ) {
      success
  }
}

Last updated