diff --git a/src/Appwrite/GraphQL/SchemaBuilder.php b/src/Appwrite/GraphQL/SchemaBuilder.php index 989af78f18..ec59e4a52d 100644 --- a/src/Appwrite/GraphQL/SchemaBuilder.php +++ b/src/Appwrite/GraphQL/SchemaBuilder.php @@ -226,12 +226,10 @@ class SchemaBuilder foreach ($collections as $collectionId => $attributes) { $objectType = new ObjectType([ 'name' => $collectionId, - 'fields' => [ - "_id" => [ - 'type' => Type::string() - ], - ...$attributes - ], + 'fields' => \array_merge( + ["_id" => ['type' => Type::string()]], + $attributes + ), ]); $attributes = \array_merge( $attributes,