Meal Tracker
Get the list of all tracked meals for a given range of dates.
Meal Tracker is a simplified version of food logging that only works for meal plan meals.
Use the mealTracker
query to get the list of all tracked meals for a given range of dates.
To obtain the list of tracked meals, it is required to have meal entries created. Refer to this documentation to create a meal tracker entry.
Note: Currently tracking service only supports JWT authentication
Required Arguments
Field
Type
Note
startDate
Date
The date when the meal entry will start counting. Use the format: YYYY-MM-DD
endDate
Date
The date when the meal entry will end counting. Use the format: YYYY-MM-DD
Available Fields
The following fields will be displayed in the response:
Field
Type
Note
mealId
String
Id of the meal
value
String
Value of the meal. Possible values:
SKIPPED
, ATE
, OTHER_FOLLOWING
, OTHER_NOT_FOLLOWING
, and DELETE
date
Date
It contains the date that corresponds to that particular day
based on the last time a meal plan was generated.
Examples
GraphQL Example
{
mealTracker(startDate: "2019-10-06" endDate: "2021-10-13")
{
mealId
value
date
}
}
curl Example
curl -XPOST 'https://production.suggestic.com/graphql' \
-H 'Authorization: Bearer <User-JWT>' \
-H 'Content-Type: application/json' \
--data-raw '{"query": "query { mealTracker(startDate:\"2019-10-06\", endDate:\"2021-10-13\") { mealId value date }}"}'
Last updated
Was this helpful?