Update "Own" Recipe

Update an "own" recipe

Use the updateOwnRecipemutation to update an "own" recipe for the currently logged user.

Argument

Required

Type

Description

databaseId

true

String!

databaseId of the "own" recipe

recipeName

false

String!

Name of the "own" recipe

ingredients

false

Collection of ingredients of the "own" recipe

quantity

false

Float!

Quantity of the ingredient

mutation {
  updateOwnRecipe(
    databaseId: "5c9d030a-6a47-11eb-84cf-46e824c1dc9c"
    recipeName: "My Daily Snack"
    quantity: 2
    ingredients: [
      {id: "09038", mealType: USDA_MEAL, quantity: 1, serving: 0},
      {id: "01123", mealType: USDA_MEAL, quantity: 1, serving: 0}
    ]
  ) {
    success
  }
}

Last updated

Was this helpful?