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?
Unfortunately, as of now, this is not possible. You can vote up the suggestion on the Microsoft Azure User Voice page.
Scott Guthrie's Blog: http://weblogs.asp.net/scottgu/azure-new-documentdb-nosql-service-new-search-service-new-sql-alwayson-vm-template-and-more
Here is a comment from a Microsoft employee, stating that support for partial document updates will be added in a future update: