Add a Food Log Entry
Add a food log entry
Use the addFoodLog
mutation to create a new log entry for the logged-in user. It is possible to log the same food, on the same day by using a different time.
Available Arguments
Argument
Required?
Type
Description
FoodID
True
String
mealTime
True
Available options are BREAKFAST
, SNACK
, LUNCH
and DINNER
date
True
Date
Date when the food is logged. Use the format YYYY-mm-dd
time
False
Time
Time when the food is logged.
servings
False
Float
Number of servings
grams
False
String
Food quantity expressed in grams
miligrams
False
String
Food quantity expressed in milligrams
portionModifier
False
String
Name of the portion consumed.
Examples
GrapqhQL Example using grams as portion
GrapqhQL Example using portionModifier
portionModifier
curl Example
Last updated
Was this helpful?