diff --git a/src/Appwrite/GraphQL/Types/Mapper.php b/src/Appwrite/GraphQL/Types/Mapper.php index d6dcc186c3..10758f4220 100644 --- a/src/Appwrite/GraphQL/Types/Mapper.php +++ b/src/Appwrite/GraphQL/Types/Mapper.php @@ -151,7 +151,7 @@ class Mapper 'description' => 'Additional data', 'resolve' => static function ($object, $args, $context, $info) { $data = \array_filter( - $object, + (array)$object, fn($key) => !\str_starts_with($key, '_'), ARRAY_FILTER_USE_KEY );