Azure Cosmos Db document - want to use replacedocumentasync with a removed property in the document

Viewed 3424
// I am using code like below
Document doc = client.CreateDocumentQuery<Document>(collectionLink)
                            .Where(r => r.Id == "doc id")    
                            .AsEnumerable()
                            .SingleOrDefault();

doc.SetPropertyValue("MyProperty1", "updated value");
Document updated = await client.ReplaceDocumentAsync(doc);

Want to remove "MyProperty2" from the document. How to do this?

2 Answers
Related