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
add advanced merge strategies #82
Comments
I'm really in two minds whether this should be done on the client or the server. Benefits of merging on the client Benefits of merging on the server Love to hear some thoughts... |
@WolframHempel for the sake of this issue can you comment on what was chosen, and point to docs if any? |
Add merge strategies that will be executed when the client encounters a version exists error. The following strategies will be supported
C.MERGE_IF_NO_CONFLICT
(default) current and incoming version will be merged if neither a value nor a tree conflict exists.C.LOCAL_WINS
the clients current version will be usedC.REMOTE_WINS
the incoming update will be usedfunction(){}
- a custom function with the following signaturemerge strategies can be set in two places:
global as part of the client options
per record on a per record basis
The text was updated successfully, but these errors were encountered: