Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

How to UPSERT an item #48

@t-souravgoel

Description

@t-souravgoel

Hi, I am using python Azure functions with CosmosDB output binding, I want to update my container regularly and the items need to be the latest copies, not the previous ones. the doc.set method gives 409 error since the items have the uid field same but some other field changes every time the function runs, lets say the timestamp, how can upsert the item? I cannot remove the unique key feature. Is there any other method than .set() ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions