I’m new to MongoDB as well as to MongoDB Realm Sync. I was following the Realm Sync tutorial and Realm data model docs, but I wanted to learn more so I tweaked the Atlas collection structure as follows.
Projects > Tasks // i.e. tasks is a sub-collection in each project.
What I don’t know is how to come up with Realm Sync Schema which can support sub-collections. The best I came up with is a Schema where
Task s are modelled as an array within the
Project . But, I’m worried that this can hit the 4MB (although a lot!) document limit for projects with a lot of the tasks.