Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
Directive::skipDirective
Method of the class: Directive{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Directive::skipDirective(): Directive;
Directive::skipDirective() Directive::skipDirective code WC 10.9.1
public static function skipDirective(): Directive
{
return self::$internalDirectives[self::SKIP_NAME] ??= new self([
'name' => self::SKIP_NAME,
'description' => 'Directs the executor to skip this field or fragment when the `if` argument is true.',
'locations' => [
DirectiveLocation::FIELD,
DirectiveLocation::FRAGMENT_SPREAD,
DirectiveLocation::INLINE_FRAGMENT,
],
'args' => [
self::IF_ARGUMENT_NAME => [
'type' => Type::nonNull(Type::boolean()),
'description' => 'Skipped when true.',
],
],
]);
}