diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index eb1a750e70..548905edae 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -411,6 +411,7 @@ App::post('/v1/database/collections/:collectionId/documents') ->setAttribute($parentProperty, $data, $parentPropertyType); $data = $parentDocument->getArrayCopy(); + $collection = $projectDB->getDocument($parentDocument->getCollection(), false); } /**