1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

Fix attribute unpacking

This commit is contained in:
Jake Barnby 2022-09-21 19:01:01 +12:00
parent e2f86aec62
commit 6c9ac29f37
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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,