Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

QueryComplexity::maxQueryComplexityErrorMessagepublic staticWC 1.0

Method of the class: QueryComplexity{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = QueryComplexity::maxQueryComplexityErrorMessage( $max, $count ): string;
$max(int) (required)
.
$count(int) (required)
.

QueryComplexity::maxQueryComplexityErrorMessage() code WC 10.9.1

public static function maxQueryComplexityErrorMessage(int $max, int $count): string
{
    return "Max query complexity should be {$max} but got {$count}.";
}