# Create my Common Foods

Use the `createMyCommonFoods` mutation to log an own-brand food intake.&#x20;

### Available Arguments

| Name          | Type                                                                        | Required? | Description                                                                        |
| ------------- | --------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------- |
| `name`        | String                                                                      | No        | Name of the food                                                                   |
| `description` | String                                                                      | No        | Description of the food                                                            |
| `nutrients`   | [Nutrients](https://docs.suggestic.com/graphql/objects/food-logs/nutrients) | No        | Object that contains the nutrient fields information of the food to be introduced. |
| `portions`    | [Portions](https://docs.suggestic.com/graphql/objects/food-logs/portions)   | No        | Object that contains the portions fields information of the food to be introduced. |

### Available Fields

The following field will be part of the response.

| Field name | Type   | Description                                                                    |
| ---------- | ------ | ------------------------------------------------------------------------------ |
| `sucess`   | String | **True** if the common food has been created. Otherwise, it displays **False** |
| `message`  | String | Description of the result                                                      |

### Example

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

```graphql
mutation createMyCommonFoods {
    createMyCommonFoods(
    input: {
        name:"CALIFORNIA CHILE BLEND" 
        description:"AG STANDARD, CALIFORNIA CHILE BLEND SMOKE ALMONDS" 
        nutrients:[
            {amount:0.038,unit:"G",nutrient:PROTEIN},
            {amount:0.34,unit:"G",nutrient:RETINOL}
    ]
        portions:[
            {amount:45.33 unit:"g" modifier:"90000" gramWeight:1}
    ]}) {
        success
        message
    }
}
```

{% endtab %}

{% tab title="Result" %}

```graphql
{
  "data": {
    "createMyCommonFoods": {
      "success": true,
      "message": "Common food saved"
    }
  }
}
```

{% endtab %}
{% endtabs %}
