PHP 클래스 GraphQL\Validator\Rules\QueryDepth

상속: extends AbstractQuerySecurity
파일 보기 프로젝트 열기: webonyx/graphql-php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $maxQueryDepth )
__invoke ( ValidationContext $context )
getMaxQueryDepth ( )
maxQueryDepthErrorMessage ( $max, $count )
setMaxQueryDepth ( $maxQueryDepth ) Set max query depth. If equal to 0 no check is done. Must be greater or equal to 0.

보호된 메소드들

메소드 설명
isEnabled ( )

비공개 메소드들

메소드 설명
fieldDepth ( $node, $depth, $maxDepth )
nodeDepth ( Node $node, $depth, $maxDepth )

메소드 상세

__construct() 공개 메소드

public __construct ( $maxQueryDepth )

__invoke() 공개 메소드

public __invoke ( ValidationContext $context )
$context GraphQL\Validator\ValidationContext

getMaxQueryDepth() 공개 메소드

public getMaxQueryDepth ( )

isEnabled() 보호된 메소드

protected isEnabled ( )

maxQueryDepthErrorMessage() 공개 정적인 메소드

public static maxQueryDepthErrorMessage ( $max, $count )

setMaxQueryDepth() 공개 메소드

Set max query depth. If equal to 0 no check is done. Must be greater or equal to 0.
public setMaxQueryDepth ( $maxQueryDepth )
$maxQueryDepth