Méthode | Description | |
---|---|---|
reduceQuery ( Youshido\GraphQL\Execution\Context\ExecutionContextInterface $executionContext, array $reducers ) | Apply all of $reducers to this query. Example reducer operations: checking for maximum query complexity, performing look-ahead query planning, etc. |
Méthode | Description | |
---|---|---|
doVisit ( |
Entry point for the walkQuery routine. Execution bounces between here, where the reducer's ->visit() method is invoked, and walkQuery where we send in the scores from the visit call. | |
walkQuery ( |
Coroutine to walk the query and schema in DFS manner (see AbstractQueryVisitor docs for more info) and yield a tuple of (queryNode, schemaNode, childScore) |
protected doVisit ( |
||
$query | ||
$currentLevelSchema | ||
$reducer |
public reduceQuery ( Youshido\GraphQL\Execution\Context\ExecutionContextInterface $executionContext, array $reducers ) | ||
$executionContext | Youshido\GraphQL\Execution\Context\ExecutionContextInterface | |
$reducers | array |
protected walkQuery ( |
||
$queryNode | ||
$currentLevelAST | Youshido\GraphQL\Field\FieldInterface | |
Résultat | Generator |