diff --git a/composer.json b/composer.json index dd07c6b8d2..bbf8e3e478 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ "ext-sockets": "*", "appwrite/php-clamav": "1.1.*", "appwrite/php-runtimes": "0.7.*", - "utopia-php/framework": "0.19.*", + "utopia-php/framework": "dev-feat-graphql-helpers", "utopia-php/logger": "0.3.*", "utopia-php/abuse": "0.7.*", "utopia-php/analytics": "0.2.*", diff --git a/src/Appwrite/GraphQL/Builder.php b/src/Appwrite/GraphQL/Builder.php index 0e248c96b0..ff93f85337 100644 --- a/src/Appwrite/GraphQL/Builder.php +++ b/src/Appwrite/GraphQL/Builder.php @@ -6,9 +6,6 @@ use Appwrite\GraphQL\Types\JsonType; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Appwrite\Utopia\Response\Model; -use Appwrite\Utopia\Response\Model\User; -use GraphQL\Error\Error; -use GraphQL\Error\FormattedError; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Definition\Type; use GraphQL\Type\Schema; @@ -210,8 +207,12 @@ class Builder $type = Type::boolean(); break; case 'Utopia\Validator\ArrayList': - $nested = (fn() => $this->validator)->bindTo($validator, $validator)(); - $type = Type::listOf(self::getParameterArgType($utopia, $nested, $required, $injections)); + $type = Type::listOf(self::getParameterArgType( + $utopia, + $validator->getValidator(), + $required, + $injections) + ); break; case 'Utopia\Validator\Numeric': case 'Utopia\Validator\Integer':