Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot update/delete any item in any container where the partition key is not /id #4

@abril927

Description

@abril927

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(),

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions