6 declare(strict_types=1);
10 use GraphQL\Language\AST\ListValueNode;
11 use GraphQL\Language\AST\NodeList;
24 private $clauseFactory;
29 private $connectiveFactory;
34 private $fieldEntityAttributesPool;
46 $this->clauseFactory = $clauseFactory;
47 $this->connectiveFactory = $connectiveFactory;
48 $this->fieldEntityAttributesPool = $fieldEntityAttributesPool;
60 $attributes = $this->fieldEntityAttributesPool->getEntityAttributesForEntityFromField($fieldName);
62 foreach (
$arguments as $argumentName => $argument) {
64 foreach ($argument as $clauseType => $clause) {
65 if (is_array($clause)) {
67 foreach ($clause as
$item) {
73 $conditions[] = $this->clauseFactory->create(
81 $this->connectiveFactory->create(
__construct(ClauseFactory $clauseFactory, ConnectiveFactory $connectiveFactory, FieldEntityAttributesPool $fieldEntityAttributesPool)
getClausesFromAst(string $fieldName, array $arguments)