Here is my question on this scenario.
1 abc email@example.com
2 abc firstname.lastname@example.org
3 abc email@example.com
4 abc firstname.lastname@example.org
Here each docalerts can be associated to multiple users. Means
User with Id 1 contains DocAlert 2,3
User with Id 2 contains DocAlert 1,2
User with Id 3 contains DocAlert 2,3 & 4
Here are the approaches
Sync DoclAlert table completely and maintain the array of DocAlert Id’s in User collection. Here DocAlerts which are not associated to the user is also synced to device.
Embed DocAlerts in User Collection and this leads to data duplications
Considering these drawbacks, After logged in to the application I want to sync only specific set of docalert records to the device from DoclAlert collection… How do I achieve this?
Is there any way to skip one attribute from syncing to local Realm DB.
I have given only read access to records with partition key “XXX” in collection “YYY”. After syncing, When I try to update records from mobile application it is allowing me to update record in my local RealmDB and ends the session and connection as well with error “ ending session with error: user does not have write access to partition (ProtocolErrorCode=206)”. This should not end connection/session here right?