Macro Goals
Use the macroGoals
query to obtain the total sum of macros logged for a particular date, the user's macronutrient goals (if goals are active), and the amount left.
Requirements
Execute the
updateMealPlanSettings
mutation to set the user's basic information, i.e: weight, height, age, etc.
Consideration
If the user updates their daily caloric intake by using the meal plan settings, profileMealPlanSettings
, the counted calories will be the ones the user or the application set by using that mutation.
Required Argument
Argument | Type | Description |
| Date! | Date to obtain the sum of macros logged |
Available Fields
Field | Type | Note |
| ID | ID of the program. Use the |
| Int | Basal Metabolic Rate |
Int | Body Mass Index calculated from user's weight and height values. | |
| Int | Totaly Daily Energy Expenditure |
| Int | Caloric Deficit |
| Int | Daily Caloric Intake Goal |
| Boolean | True if this is the user's goal. Otherwise, it will be False |
| MacroNutrientGoal | An object that contains predefined macronutrient goals |
| MacroNutrientGoal | An object that contains predefined macronutrient goals |
| MacroNutrientGoal | An object that contains predefined macronutrient goals |
| MacroNutrientGoal | An object that contains predefined macronutrient goals |
MacroNutrientGoal
It includes the following objects:
carbs
fat
protein
netcarbs
Find the available fields for these objects:
Available fields
Field name | Type | Description |
| String | Goal's user expressed in grams |
| Int | The quantity of food the user has been intaken. This information is extracted while the user logs the food intake. This information is expressed in grams. |
| Int | The amount left, expressed in grams, to reach the goal. |
| String | White: There are missing macros to reach the goal. Green: The goal has been reached. Red: The goal has been exceeded. |
Example
The following example retrieves the user macro goals information for a given date.
The macro goals are also displayed within the Suggestic's app:
Last updated