# Recently Logged

Use the `recentMealLogs`query to obtain a list of the most recently logged items.

### Available Fields

The following fields will be displayed in the response:

| Field Name | Type                                                                                         | Description                                                                                                          |
| ---------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `id`       | ID                                                                                           | Food item ID.                                                                                                        |
| `name`     | String                                                                                       | Name of the meal                                                                                                     |
| `mealTime` | [RecipeMealTime](https://docs.suggestic.com/graphql/objects/common/meal-times)               | Object that returns the valid meal times. Valid values are: `BREAKFAST`, `LUNCH`, `DINNER`, `SNACK`, `TREAT_DESSERT` |
| `mealType` | [mealType](https://docs.suggestic.com/graphql/objects/food-logs/meal-type#available-options) | Object that represents the source and type of a meal or food.                                                        |

### Example

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

```graphql
{
  recentMealLogs  {
    id
    name
    mealType
    mealTime
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "recentMealLogs": [
      {
        "id": "TWVhbExvZzo5NTI0Y2VlZWZhMGExMWViYmQ0NjlhZWQzYzNjNTc2YQ==",
        "name": "Potato and Pesto Salad",
        "mealType": "RECIPE",
        "mealTime": "DINNER"
      },
      {
        "id": "TWVhbExvZzpkODYyZjk5Y2ZhMDUxMWViYTRlOGU2NjU1YjM5NzE2ZQ==",
        "name": "Powercrunch Protein bar",
        "mealType": "OWN_ITEM",
        "mealTime": "LUNCH"
      },
      {
        "id": "TWVhbExvZzpkODVlYTJlOGZhMDUxMWViYjAxOGZhZmViNzUzYWZkNA==",
        "name": "Powercrunch Protein bar",
        "mealType": "OWN_ITEM",
        "mealTime": "BREAKFAST"
      },
      {
        "id": "TWVhbExvZzpkODViNTM5YWZhMDUxMWViYjgwNjkyZDk4M2U2YWRhMg==",
        "name": "Powercrunch Protein bar",
        "mealType": "OWN_ITEM",
        "mealTime": "DINNER"
      },
      {
        "id": "TWVhbExvZzo4YjMwOTUzNGY5MzkxMWViOTU2N2NhZjI0OTc1ODNlMQ==",
        "name": "avocado",
        "mealType": "OWN_ITEM",
        "mealTime": "DINNER"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}
