Check/Uncheck an Item

Use toggleShoppingListItemto change the isDone status of a shopping list item.

Please note that this mutation will automatically toggle the isDone value. You don't need to pass a true or false value. In other words, if the value is currently false, then calling this mutation will make it true and vice versa.

Available Arguments

Arguments

Type

Description

itemId

UUID

required the list item id, could be from aggregation or from recipe view. To get the item ID, execute the shoppingListAggregate mutation.

isAggregate

Bool

required if the id is from the aggregation view

Example

mutation {
  toggleShoppingListItem(
    itemId: "195c0e2f-302f-4f65-8982-aa13fee2f8d5"
    isAggregate: true
  ){
    success
  }
}

The isAggregate value must be true if the itemID comes from the shopping list aggregate.

Last updated