Skip to content Skip to sidebar Skip to footer

How To Update Record In Cosmos Db Using Python?

I want to read record from cosmos db and update same record in cosmos db using python. example: { 'id':'id-1', 'name':'mohit' } I want to read the above record and update it

Solution 1:

The method you would want to use is ReplaceItem. You will need to query the container to get the document (so that you have that document's self link), then call this method and pass the updated document.


Post a Comment for "How To Update Record In Cosmos Db Using Python?"