Fix attribute unpacking
This commit is contained in:
parent
e2f86aec62
commit
6c9ac29f37
1 changed files with 4 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue