# Update Express Meal Track

Use the `updateExpressTrack` mutation to update a express meal track entry.

## Arguments

| Argument   | Type     | Description                                                                                  |
| ---------- | -------- | -------------------------------------------------------------------------------------------- |
| `id`       | ID!      | Id of the express track entry.                                                               |
| `mealTime` | MealTime | <p>Meal time to assign.<br>enum MealTime {<br>BREAKFAST<br>LUNCH<br>DINNER<br>SNACK<br>}</p> |
| `calories` | Float    | Number of total calories of the meal entry.                                                  |
| `proteins` | Float    | Total protein of the meal in grams.                                                          |
| `carbs`    | Float    | Total carbs of the meal in grams.                                                            |
| `fats`     | Float    | Total fats of the meal in grams.                                                             |
| `datetime` | DateTime | The date when the entry will be logged. Use the format: `YYYY-MM-DDT hh:mm:ssZ`              |

## Available Fields

| Field     | Type    | Description                                                                                  |
| --------- | ------- | -------------------------------------------------------------------------------------------- |
| `success` | Boolean | **True** if the express meal track entry has been updated. Otherwise, it displays **False.** |
| `message` | String  | Description of the result.                                                                   |

## Example

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

```graphql
mutation{
  updateExpressTrack(
    id:"RXhwcmVzc01lYWxUcmFjazo3ODM3"
    mealTime: SNACK
    calories: 640
    proteins: 51
    carbs:66
    fats:23
    datetime:"2025-06-09T09:07:21-07:00"
  ){
    success
    message
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateExpressTrack": {
      "success": true,
      "message": "Express Track updated successfully"
    }
  }
}
```

{% endtab %}
{% endtabs %}
