diff --git a/packages/graphql/src/SearchBy/Operators/Complex/Relation.php b/packages/graphql/src/SearchBy/Operators/Complex/Relation.php index ed4374ad5..0aa90d24b 100644 --- a/packages/graphql/src/SearchBy/Operators/Complex/Relation.php +++ b/packages/graphql/src/SearchBy/Operators/Complex/Relation.php @@ -105,7 +105,6 @@ public function call(Handler $handler, object $builder, Property $property, Argu // * where + notExists = doesntHave // Conditions - $property = $property->getParent(); $relation = (new ModelHelper($builder))->getRelation($property->getName()); $has = $argument->value->arguments['where'] ?? null; $hasCount = $argument->value->arguments['count'] ?? null; diff --git a/packages/graphql/src/SearchBy/Operators/Complex/RelationTest.php b/packages/graphql/src/SearchBy/Operators/Complex/RelationTest.php index 6922d251b..a87c62af9 100644 --- a/packages/graphql/src/SearchBy/Operators/Complex/RelationTest.php +++ b/packages/graphql/src/SearchBy/Operators/Complex/RelationTest.php @@ -45,7 +45,6 @@ public function testCall( } $operator = $this->app->make(Relation::class); - $property = $property->getChild('operator name should be ignored'); $argument = $argumentFactory($this); $search = $this->app->make(Directive::class); $builder = $builderFactory($this);