Create Express Meal Track
Use the createExpressTrack
mutation to create a quick and easy meal entry to be used on the food log.
Arguments
Argument
Type
Description
foodName
String
Name of the meal.
mealTime
MealTime!
Meal time to assign. enum MealTime { BREAKFAST LUNCH DINNER SNACK }
calories
Float!
Number of total calories of the meal entry.
proteins
Float!
Total protein of the meal in grams.
carbs
Float!
Total carbs of the meal in grams.
fats
Float!
Total fats of the meal in grams.
datetime
DateTime
The date when the entry will be logged. Use the format: YYYY-MM-DDT hh:mm:ssZ
imageUrl
String
Food image URL.
Available Fields
Field
Type
Description
success
Boolean
True if the express meal track entry has been saved. Otherwise, it displays False.
message
String
Description of the result.
Example
Last updated
Was this helpful?