are there resources or examples somewhere on how to properly architect a data model for a Group so that realm can sync/subscribe to the data with the limitations coming with Flexible sync like (Flexible Sync does not support querying on properties in Embedded Objects or links).
A User can belong to many Groups. (group members)
Group members can access group resources.
I’m having a very hard time designing this.
Thanks in advance.
I’m working on such a sample because of my own frustrations with the samples documented and distributed, and will be writing an article about it. There are likely to be many architectures depending on your frequency of updates and the nature of sharing relationships.
I am presenting it publicly on the 25th but will try to release it much earlier - I’ve got a client demo on the 20th.
It leans into the MongoDB document philosophy of copying and duplicate data for speed. The essence is that shared data is copied into a SharedWith object as nested objects. This propagates changes very fast and has minimal subscriptions (remember there’s a limit of 10 active).
Just for your convenience, I’ve pushed the docs up to the MADsyncily repo.
The sample is in C# with Xamarin Forms so the rest of the code will probably be of little interest and I have a few bugs to cleanup before I want it out there.