메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | Generator |