diff icon indicating copy to clipboard operation
diff copied to clipboard

Append/Update only

Open ryjogo opened this issue 2 years ago • 1 comments

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?

ryjogo avatar Jan 18 '23 14:01 ryjogo

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.

purehyperbole avatar Jan 18 '23 14:01 purehyperbole