Update Meal Plan Settings
Use the updateMealPlanSettings
mutation to update or overwrite the user's meal plan settings. All the arguments to be sent are optional; however, it will update only the arguments sent in the mutation. The information is saved and it can be later requested by executing the mealPlan query.
Required Arguments
Name | Type | Description |
| Object | Update the values added to it. For example, |
| Object | Overwrite only the values added to it. The ones that were not added will be set as |
If the update
and overwrite
arguments are defined at the same time, the overwrite
argument will be the one applied.
Available Arguments
Use the following arguments within the update and overwrite objects:
Arguments | Type | Description |
| Int | Total Calories per day. If using the overwrite and no calories value is defined, the default value is set to 1400. |
| Int | Percent of Carbs |
| Int | Percent of Fat |
| MealTime! | Requested meals per day format. Available options: The list cannot have a null value, i.e,
If not format is sent, the following format is set as default: |
| Float | Percent of Omega 3. |
| Int | Percent of Protein |
Example
The following example updates the protein and calories values:
The following example updates the meal format and sets automatically the rest of arguments not send as null:
The following example uses query variables and updates the calories and proteins values:
Last updated