Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
How to view changes in the document that triggered notification? #22417
All sample documentation I've seen regarding Azure Functions just shows that you get what the document looks like after the update.
However, how do I determine what changed in the document to trigger the notification?
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
But, there is a concept of
Okay thanks for the response. It clears up my question.
This part doesn't make it clear that it's not possible to know what's changed within an updated document. I interpreted it as you will always get both updates and inserts and cannot filter for only updates. Not that when you get a notification, it only returns the current (new) state of the document and not the properties that were changed.
Can you clarify the soft marker approach?
@derekbekoe As Mike mentioned, you cannot tell which part of the document changes in an update (ie get the diff).
I believe the soft marker approach means that, since the feed publishes both inserts and updates in the same manner (currently you cannot tell an insert from an update since you receive the full document), a marker attribute can be used to differentiate which operation is the change coming from.
You can add a new attribute to the doc like