diff
diff copied to clipboard
Append/Update only
I have a use case where the diff to object is sent in many smaller parts, therefore i need to be able to not remove objects, but update/add - can this be accomplished?
Hey @ryjogo , not entirely sure I understand what you're trying to accomplish.
If you are only after applying changes that add or update, then you could just iterate through the changelog and remove any changes with a Type
of diff.DELETE
or copy only those with diff.CREATE
or diff.UPDATE
to a new changelog slice.