Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append/Update only #94

Open
ryjogo opened this issue Jan 18, 2023 · 1 comment
Open

Append/Update only #94

ryjogo opened this issue Jan 18, 2023 · 1 comment

Comments

@ryjogo
Copy link

ryjogo commented Jan 18, 2023

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?

@purehyperbole
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants