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

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

 pageInfo{
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }

Examples

GraphQL Example

{
  myBrandedFoods {
    edges {
      node {
        id
        name
        servingSize
        servingSizeUnit
        householdServingFulltext
        nutrients {
          unit
          type
          name
        }
      }
    }
  }
}

Last updated