Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

ScalarLeafs::requiredSubselectionMessagepublic staticWC 1.0

Method of the class: ScalarLeafs{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = ScalarLeafs::requiredSubselectionMessage( $field, $type ): string;
$field(string) (required)
.
$type(string) (required)
.

ScalarLeafs::requiredSubselectionMessage() code WC 10.9.1

public static function requiredSubselectionMessage(string $field, string $type): string
{
    return "Field \"{$field}\" of type \"{$type}\" must have a sub selection.";
}