# Favorite Recipes

Use the `myFavoriteRecipes` query to obtain a list of all the recipes that have been marked as favorite by the user.

Favorites are returned "first in last out".

## Available Fields <a href="#available-fields" id="available-fields"></a>

The following fields will be displayed in the response:

| **Field Name** | **Type**          | **Description**                                                                |
| -------------- | ----------------- | ------------------------------------------------------------------------------ |
| `id`           | ID!               | The recipe's id                                                                |
| `databaseId`   | String            | The database id of the recipe                                                  |
| `totalTime`    | String            | <p>Total preparation and cooking time in text format</p><p>E.g., 5 minutes</p> |
| `name`         | <p>String<br></p> | Name of the recipe                                                             |

Refer to [this documentation](https://docs.suggestic.com/graphql/objects/recipe/recipe-object) to get the complete list of recipe fields you can add to the query response

## Example

### Get the user's favorite recipes

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

```graphql
{
  myFavoriteRecipes {
    edges {
      node {
        id
        name
      }
    }
  }
}

```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "data": {
    "myFavoriteRecipes": {
      "edges": [
        {
          "node": {
            "id": "UmVjaXBlOjNmMTVmNzkzLTc1ZmQtNGE3YS04MDBkLTIwNGUwZDczYzFkMw==",
            "name": "Salmon Salad Power Bowl"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjc5ODFmYTk5LTJhMDctNDU1YS05NmNlLTc5ZjM5ZjI4MmY0ZQ==",
            "name": "Blueberry And Banana Shake"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmViMWNkNmY3LTEzNjItNDZjNy04MmMyLTIyMDZjZmVkODkwYQ==",
            "name": "Green Protein Shake With Seeds"
          }
        }
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}

#### UI/UX example

In the same way, we have code examples, this is an implementation example in which see results of the API execution in the Suggestic App.&#x20;

Login to the App, tap on the <img src="/files/-MkEb-mxOktS7Pzi9ahv" alt="" data-size="line"> profile icon, then go to the **Recipes** option and all the user's **Favorites** recipes will display at the top of the list.

![](/files/yPuCUqgAIXkvBElN7JRJ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.suggestic.com/graphql/query/queries/recipes/my-favorite-recipes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
