Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
Directive::oneOfDirective
Method of the class: Directive{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Directive::oneOfDirective(): Directive;
Directive::oneOfDirective() Directive::oneOfDirective code WC 10.9.4
public static function oneOfDirective(): Directive
{
return self::$internalDirectives[self::ONE_OF_NAME] ??= new self([
'name' => self::ONE_OF_NAME,
'description' => 'Indicates that an Input Object is a OneOf Input Object (and thus requires exactly one of its fields be provided).',
'locations' => [
DirectiveLocation::INPUT_OBJECT,
],
'args' => [],
]);
}