Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

QueryDepth::maxQueryDepthErrorMessagepublic staticWC 1.0

Method of the class: QueryDepth{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = QueryDepth::maxQueryDepthErrorMessage( $max, $count ): string;
$max(int) (required)
.
$count(int) (required)
.

QueryDepth::maxQueryDepthErrorMessage() code WC 10.9.1

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