DATA QUALITY: Please allow for properties to be set using a subquery
The use case here is incrementing the reply count property on a post vertex. To increment, we have to fetch the post vertex, increment the reply count property within our API, then update the graph with the new property value. Unfortunately, if multiple users reply simultaneously using different instances of our API, the reply count value is set incorrectly. Sending a query to the database and letting the server make the updates by calculating the value would address the issue.
Thank you for your suggestion.
At this time we are still investigating and evaluating this type of capability. This is on our backlog and we will continue to evaluate this with additional customer input. We will update this as this progresses.
Benjamin Hubert commented
This would be very useful. There was a github discussion on the subject ( https://github.com/Azure/azure-cosmos-dotnet-v2/issues/566 ) but it seems to have been forgotten as it is in the V2 github repo.