> 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/queries/recipes/my-favorite-recipes.md).

# Favorite Recipes

Returns a list of the user's favorited 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="https://920729701-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LwqSnBDpAb6mFZYLsuB%2F-MkEZ1Lq1o2KWfe1v3nX%2F-MkEb-mxOktS7Pzi9ahv%2Fimage.png?alt=media&amp;token=69029ad6-d1d3-4cf9-afee-b36ca1e6f743" 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.

![](https://920729701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LwqSnBDpAb6mFZYLsuB%2Fuploads%2Fp636W8Dy8oB5A30pokoJ%2FfavoriteRecioes.gif?alt=media\&token=30ada498-f210-49b9-9f58-6888a1390b87)
