PHP Class GraphQL\Validator\Rules\QueryDepth

Inheritance: extends AbstractQuerySecurity
Afficher le fichier Open project: webonyx/graphql-php Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
isEnabled ( )

Private Methods

Méthode Description
fieldDepth ( $node, $depth, $maxDepth )
nodeDepth ( Node $node, $depth, $maxDepth )

Method Details

__construct() public méthode

public __construct ( $maxQueryDepth )

__invoke() public méthode

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

getMaxQueryDepth() public méthode

public getMaxQueryDepth ( )

isEnabled() protected méthode

protected isEnabled ( )

maxQueryDepthErrorMessage() public static méthode

public static maxQueryDepthErrorMessage ( $max, $count )

setMaxQueryDepth() public méthode

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