Update "own Food"

Update a food item

Arguments

Required

Type

databaseId

True

String!

name

false

String

barcode

false

String

brand

false

String

ownNutrients

true

ownServing

true

mutation {
  updateOwnMeal(
    name: "Avocado"
    brand: "HEB market"
    databaseId: "9c0e60ee-6a77-11eb-8f46-324f6bb126c1"
    ownServing:{
      equivalent: 110,
      name: "1 servings"
    },
    ownNutrients: {
      enercKcal: 220,
    	ca: 60,
      chocdf: 12,
      chole: 0,
      fams: 0,
      fapu: 0,
      fasat: 0,
      fat: 13,
      fatrn: 0,
      fe: 0,
      fibtg: 0,
      k: 0,
      na: 0,
      procnt: 13,
      sugar: 6,
      vitaIu: 0,
      vitc: 0
    }
  ) {
    success
    message
  }
}

Last updated