Update Serving Number

Use updateShoppingListRecipeServings to update the recipe number of servings

Arguments

Type

Description

recipeId

ID

ID of the recipe

numberOfServings

Int

Servings quantity

Example

Update the recipe number of servings to 2.

mutation {
updateShoppingListRecipeServings(
   recipeId: "UmVjaXBlOjQyOWM5N2M5LTMyN2ItNDFlNS05MjdlLWI5ZWU3YTJjZWRlYg==",
   numberOfServings: 2) {
    success
}
  }

UI/UX example

In the same way, we have code examples, this is an implementation example in which see results of the API execution in the Suggestic App.

Login to the App, tap on the Meal Plan option, and tap on the icon to access the Shopping List, Tap on By Recipe tab and see that the servings number has been updated to 2:

Last updated

Was this helpful?