Technical Docs
Ask or search…
K

My Branded Food Search

Use the myBrandedFoodsto return the user's stored branded foods. These branded foods are the ones created by a user by using the createMyBrandedFoods mutation.
Use also an optional ID argument to search b64id foods.

Available Argument

Name
Type
Description
Id
String
Own branded food ID. No required argument.

Available Fields

The following fields are part of the response.
Field Name
Type
Description
name
String
Name of the branded food
calories
String
Number of calories
description
String
Branded food description
gtinUPC
String
GTIN or UPC number that is included in the food package.
brandOwner
String
Name of the food brand owner
servingSize
Int
Quantity of grams per serving
ServingSizeUnit
Int
Unit of the Serving size
householdServingFulltext
String
Name of the serving
nutrients
nutrients
Object that includes the information of the nutrients available in the food
tags
String
Displays the available tags

Pagination

The myBrandedFoods query supports the use of pagination. The following fields can be used
Query
pageInfo{
hasNextPage
hasPreviousPage
startCursor
endCursor
}

Examples

GraphQL Example

Query
Response
{
myBrandedFoods {
edges {
node {
id
name
servingSize
servingSizeUnit
householdServingFulltext
nutrients {
unit
type
name
}
}
}
}
}
{
"data": {
"myBrandedFoods": {
"edges": [
{
"node": {
"id": "TXlCcmFuZGVkRm9vZDpiY0RFTVg4QmI0RHRoTlZhRVIwTQ==",
"name": "Milk",
"servingSize": 240,
"servingSizeUnit": "ml",
"householdServingFulltext": "1 cup",
"nutrients": [
{
"unit": "MG",
"type": "POTASSIUM_K",
"name": "Potassium, K"
},
{
"unit": "MG",
"type": "CALCIUM_CA",
"name": "Calcium, Ca"
}
]
}
}
]
}
}
}