> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/mutations/food-log/log-entries/meal-log-legacy/update-log-entry.md).

# Update Log Entry

Update a specific log entry

`updateMealLog` updates attributes of an existing meal log from the logged-in user

### Available Arguments

| Argument                  | Required? | Type                                                                      | Description                                                                                                                                            |
| ------------------------- | --------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `databaseId`              | True      | String!                                                                   | ID of the Meal Log to update. Execute the [`mealLog` ](https://docs.suggestic.com/graphql/query/queries/food-log/food-logs)query to get the databaseId |
| `mealTime`                | True      | [MealTime!](https://docs.suggestic.com/graphql/objects/common/meal-times) | Available options are `BREAKFAST`, `SNACK`, `LUNCH` and `DINNER`                                                                                       |
| `quantity`                | True      | Float!                                                                    | The number of servings that is being logged                                                                                                            |
| `serving`                 | False     | Float                                                                     | Servings quantity                                                                                                                                      |
| `date`                    | False     | Date!                                                                     | format `YYYY-mm-dd`                                                                                                                                    |
| `time`                    | False     | Time!                                                                     | format `HH:MM`                                                                                                                                         |
| `customServingEquivalent` | False     | Float                                                                     |                                                                                                                                                        |

### Example

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

```graphql
mutation {
  updateMealLog(
    databaseId: "8b26326af93911ebad1b6e546cdee6f4",
    date: "2020-04-02",
    mealTime: DINNER,
    quantity: 1,
    serving: 1,
    customServingEquivalent: 470,
    time: "16:00"
  ) {
    success
  }
}
```

{% endtab %}

{% tab title="Response" %}

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

{% endtab %}
{% endtabs %}
