From https://docs.mongodb.com/realm/sync/conflict-resolution/#custom-conflict-resolution, it doesn’t explicitly states the implementation details of handling custom conflict resolution.
I imagine this is how it would need to work but can someone validate my understanding?
Suppose we have an object with a status flag (status = high, medium, low) and say we always want status = high to win.
I assume that
we need to put this object into a list, sync it back, and when the list gets synced back to Atlas, trigger will need to be initiated, call the function, resolve the conflict based on custom logic (ie. loop thru the list and check which status = high), and then delete the rest of the items in the list, then persist the actual record it back to Atlas, such that the resolution results are reflected back on the connected devices?
Can someone shed some light around this and validate my understanding? Thanks!