Add a Recipe to the Shopping List
Manage Shopping Lists
Use addToShoppingList
to add a recipe to the user's shopping list
Available Argument
Arguments
Type
Description
recipeId
UUID!
recipe database UUID
servings
Int
Number of recipes to add for the recipe.
Available Fields
Field Name
Type
Description
success
Boolean
True if the recipe has been added to the shopping list. Otherwise, it will display False
message
String
Description of the result. Either if the recipe was added or not.
Example
The following example adds the Fried Rice recipe to the shopping list.
Example with Servings
The following example adds one serving of the Fried Rice recipe to the shopping list.
UI/UX example
This is an implementation example from the Suggestic App.
Add Multiple Recipes to a Shopping list
Available Argument
Arguments
Type
Description
recipeIds
[UUID]
List of recipe database UUID
Example
Last updated
Was this helpful?