Own Food Item by Id
Retrieve an Own Food Item's information by its Id
Use the ownMealLog
query to retrieve an Own Food Item's information.
Required Argument
Argument
Type
Description
id
ID!
Example
{
ownMealLog(id: "TWVhbExvZzozMTE3MDIxMC1kYjNkLTExZWEtYTA0ZS0wMjQyYWMxODAwMDc=") {
databaseId
name
id
userPid
mealType
mealTime
secondaryInfoText
extraInfo
serving
nutrients {
sugar
fat
procnt
fibtg
netcarbs
}
servings {
amount
equivalent
unit
description
}
macrosLog {
chocdf
sugar
procnt
}
nutritionalInfo {
calories
sugar
calcium
cholesterol
sodium
}
}
}
{
"data": {
"ownMealLog": {
"databaseId": "31170210-db3d-11ea-a04e-0242ac180007",
"name": "Powercrunch Protein bar",
"id": "TWVhbExvZzozMTE3MDIxMC1kYjNkLTExZWEtYTA0ZS0wMjQyYWMxODAwMDc=",
"userPid": "88ca9141-e147-40f5-8fe1-6c49bcd6c578",
"mealType": "OWN_ITEM",
"mealTime": "LUNCH",
"secondaryInfoText": null,
"extraInfo": "0 % Carbs • 0 % Protein • 0 % Fat",
"serving": 0,
"nutrients": {
"sugar": 0.0015,
"fat": 0.0033,
"procnt": 0.0033,
"fibtg": 0,
"netcarbs": 0.003
},
"servings": [
{
"amount": 1,
"equivalent": 40,
"unit": "g",
"description": "5 servings"
}
],
"macrosLog": null,
"nutritionalInfo": {
"calories": 5.5,
"sugar": 0.15,
"calcium": 1.5,
"cholesterol": null,
"sodium": null
}
}
}
}
Last updated