Skip to content

feature

Directs the executor to run this only based on the state of a server-side feature flag.

Arguments

if · String · Include the element if the feature flag is enabled.
unless · String · Include the element if the feature flag is disabled.

Definition

directive @feature(
if: String
unless: String
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT