It seems that when updating items, Cosmox always passes the provided id as both the ID and the partition key.
This is undesirable as it makes it impossible to update any item in a container where the partition key is not /id.
|
container.item(id, id).replace({ |
It appears this may also apply to deletions (but I have not tested it myself):
|
container.item(id, id).delete(), |