---
url: https://api-doc.aive.com/api/operations/directives/include.md
---

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
```

### Arguments

#### [include.if](#if) ● [Boolean!](/api/types/scalars/boolean) non-null scalar {#if}

Included when true.
