Skip to main content

@skip

Directive

Directs the executor to skip this field or fragment when the if argument is true.

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

Arguments​

ArgumentTypeDefaultDescription
ifBoolean!Skipped when true.

Locations​

  • FIELD
  • FRAGMENT_SPREAD
  • INLINE_FRAGMENT