@skip
The@skip
directive may be provided for fields, fragment spreads, and inline fragments, and allows for conditional exclusion during execution as described by the if argument.
In this exampleexperimentalField
will be queried only if the$someTest
is provided afalse
value.
query myQuery($someTest: Boolean) {
experimentalField @skip(if: $someTest)
}