Fixed missing collection error when creating
a new document
This commit is contained in:
parent
1a8f881328
commit
a5c3e978e8
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue