# Relative Calories

### List of Fields

Please note that fields not documented here may be out of date or deprecated.&#x20;

| **Nutrient**         | **Unit** |
| -------------------- | -------- |
| `carbs`              | %        |
| `fat`                | %        |
| `dha`                | %        |
| `dpa`                | %        |
| `epa`                | %        |
| `ala`                | %        |
| `saturatedFat`       | %        |
| `monounsaturatedFat` | %        |
| `polyunsaturatedFat` | %        |
| `transFat`           | %        |
| `omega3`             | %        |

### Example

Obtaining the caloric value of each macronutrient as a percentage of total calories per serving.

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

```graphql
{
  recipe(id: "UmVjaXBlOjFkMWIzYzU4LTk3Y2MtNDJlMi05NGEyLTA0OTdjMjVjNjhjYQ==") {
    name
    caloriesPerServing {
      protein
      carbs
      fat
    }
    relativeCalories {
      carbs
      fat
      protein
      saturatedFat
      omega3
      transFat
    }
  }
}

```

{% endtab %}

{% tab title="Response" %}

```
{
  "data": {
    "recipe": {
      "name": "Three Bean Salad With Corn & Peppers",
      "caloriesPerServing": {
        "protein": 62.48838057617347,
        "carbs": 220.73646040095224,
        "fat": 51.05270997574553
      },
      "relativeCalories": {
        "carbs": 0.3182,
        "fat": 0.5673,
        "protein": 0.1145,
        "saturatedFat": 0.2605,
        "omega3": 0.0091,
        "transFat": 0.0088
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}
