@skip and @include directives can be applied to query fields. They let you skip or include a field based on the value of the if argument.
@skip and @include directives can be applied to query fields. They allow you
to skip or include a field based on the value of the if argument passed to the
directive.
@skipskipTitle GraphQL variable.
GraphQL query
@include@include directive can be used to include a field based on the
value of the if argument. The query below would only include the authors for a
post if includeAuthor GraphQL variable has value true.
GraphQL Query