Create my Branded Food

Use the createMyBrandedFoods mutation to log an own-brand food intake.

Available Arguments

Name

Type

Required?

Description

name

String

Yes

Name of the food

description

String

No

Description of the food

brandOwner

String

Yes

Name of the brand owner

servingSizeUnit

String

Yes

Quantity of grams per serving size unit

servingSize

String

Yes

Quantity of grams per serving

gtin_upc

String

Yes

GTIN or UPC number that is included in the food package.

householdServingFulltext

String

No

Name of the serving

nutrients

Yes

Object that contains the nutrient information of the food.

Available Fields

The following field will be part of the response.

Field name

Type

Description

sucess

String

True if the branded food has been created. Otherwise, it displays False

message

String

Description of the result

Example

mutation createMyBrandedFoods {
  createMyBrandedFoods(
    input: {
      brandOwner: "Pil"
      servingSizeUnit: "ml"
      servingSize: 240
      gtinUpc: "688267008689"
      householdServingFulltext: "1 cup"
      name: "Milk"
      nutrients: [
        { amount: 150, unit: "MG", nutrient: POTASSIUM_K }
        { amount: 120, unit: "MG", nutrient: CALCIUM_CA }
      ]
    }
  ) {
    success
    message
  }
}

Last updated