Create my Common Foods

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

Available Arguments

Name

Type

Required?

Description

name

String

No

Name of the food

description

String

No

Description of the food

nutrients

No

Object that contains the nutrient fields information of the food to be introduced.

portions

No

Object that contains the portions fields information of the food to be introduced.

Available Fields

The following field will be part of the response.

Field name

Type

Description

sucess

String

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

message

String

Description of the result

Example

mutation createMyCommonFoods {
    createMyCommonFoods(
    input: {
        name:"CALIFORNIA CHILE BLEND" 
        description:"AG STANDARD, CALIFORNIA CHILE BLEND SMOKE ALMONDS" 
        nutrients:[
            {amount:0.038,unit:"G",nutrient:PROTEIN},
            {amount:0.34,unit:"G",nutrient:RETINOL}
    ]
        portions:[
            {amount:45.33 unit:"g" modifier:"90000" gramWeight:1}
    ]}) {
        success
        message
    }
}

Last updated