# Check/Uncheck an Item

Use `toggleShoppingListItem`to 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`](https://docs.suggestic.com/graphql/query/queries/shopping-list#get-shopping-list-aggregate) mutation. |
| `isAggregate` | `Bool`     | **required** if the id is from the aggregation view                                                                                                                                                                                           |

### Example

{% tabs %}
{% tab title="Mutation" %}

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

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "toggleShoppingListItem": {
      "success": true
    }
  }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
The isAggregate value must be true if the itemID comes from the shopping list aggregate.
{% endhint %}
