> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/miscellaneous/llms.txt)
> Source: https://docs.saleor.io/api-reference/miscellaneous/directives/include

# include Directive

Directs the executor to include this field or fragment only when the `if` argument is true.

```graphql
directive @include(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
```

<a id="arguments"></a>

### Arguments

<a id="if"></a>

#### [`if`](#if) ● [`Boolean!`](/api-reference/miscellaneous/scalars/boolean.md)

Included when true.
