diff --git a/src/Appwrite/GraphQL/TypeMapper.php b/src/Appwrite/GraphQL/TypeMapper.php index fcdbedb43f..edc53d5a60 100644 --- a/src/Appwrite/GraphQL/TypeMapper.php +++ b/src/Appwrite/GraphQL/TypeMapper.php @@ -75,6 +75,7 @@ class TypeMapper break; case 'Utopia\Database\Validator\Authorization': case 'Utopia\Database\Validator\Permissions': + case 'Utopia\Database\Validator\Roles': $type = Type::listOf(Type::string()); break; case 'Utopia\Validator\Assoc': diff --git a/src/Appwrite/GraphQL/TypeRegistry.php b/src/Appwrite/GraphQL/TypeRegistry.php index 6d7721575b..1680c6588c 100644 --- a/src/Appwrite/GraphQL/TypeRegistry.php +++ b/src/Appwrite/GraphQL/TypeRegistry.php @@ -120,7 +120,6 @@ class TypeRegistry $fields[$escapedKey] = [ 'type' => $type, 'description' => $props['description'], - 'resolve' => static fn($object, $args, $context, $info) => $object[$key], ]; } }