Skip to main content

@include

Directive

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​

ArgumentTypeDefaultDescription
ifBoolean!Included when true.

Locations​

  • FIELD
  • FRAGMENT_SPREAD
  • INLINE_FRAGMENT