Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules
QueryDepth::maxQueryDepthErrorMessage
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() 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}.";
}