# include

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

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

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

### Arguments[​](#arguments "Direct link to Arguments")

#### [`include.if`](#if) ● [`Boolean!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/boolean.md) non-null scalar[​](#if "Direct link to if")
