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

Arguments

Type

Description

calories

Int!

Total Calories per day

carbsPerc

Float!

Percent of Carbs

proteinPerc

Float!

Percent of Protein

fatPerc

Float!

Percent of Fat

omega3Perc

Float

Percent of Omega 3. If not included, the planner ignores this constraint.

format

MealTimeType

Requested meals per day format, Available options are: BREAKFAST, SNACK, LUNCH, DINNER

error

Float!

Margin of error (as a percentage) for calories and macros. Default: 0.1

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