GraphQL\Validator\Rules\QueryDepth::maxQueryDepthErrorMessage PHP Method

maxQueryDepthErrorMessage() public static method

public static maxQueryDepthErrorMessage ( $max, $count )
    public static function maxQueryDepthErrorMessage($max, $count)
    {
        return sprintf('Max query depth should be %d but got %d.', $max, $count);
    }

Usage Example

Example #1
0
 /**
  * @param $max
  * @param $count
  *
  * @return string
  */
 protected function getErrorMessage($max, $count)
 {
     return QueryDepth::maxQueryDepthErrorMessage($max, $count);
 }