Updating part of a Document in Azure DocumentDB

Kevin Cress picture Kevin Cress · Mar 19, 2015 · Viewed 7k times · Source

Is there a way to update part of a document in a DocumentDB collection?

I know that ReplaceDocumentAsync lets you update a document, but you have to replace the entire document. This sounds kind of scary. If I have an object that has other objects nested I will have to query for the parent document and then replace the entire document to update a nested part of the object.

Does DocumentDB handle ReplaceDocumentAsync in a way that makes it perform better than it might seem on the surface?