1
0
Fork 0
mirror of synced 2024-06-28 19:20:25 +12:00

Fixed missing collection error when creating

a new document
This commit is contained in:
eldadfux 2019-09-15 19:50:42 +03:00
parent 1a8f881328
commit a5c3e978e8

View file

@ -385,6 +385,7 @@ $utopia->post('/v1/database/:collectionId/documents')
throw new Exception('Collection not found', 404);
}
$data['$collection'] = $collectionId; // Adding this param to make API easier for developers
$data['$permissions'] = [
'read' => $read,
'write' => $write,