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

setMaxQueryDepth() public method

Set max query depth. If equal to 0 no check is done. Must be greater or equal to 0.
public setMaxQueryDepth ( $maxQueryDepth )
$maxQueryDepth
    public function setMaxQueryDepth($maxQueryDepth)
    {
        $this->checkIfGreaterOrEqualToZero('maxQueryDepth', $maxQueryDepth);
        $this->maxQueryDepth = (int) $maxQueryDepth;
    }