Conceptually, if a Person is instantiated in code, and then some dogs, and then the dogs are added to the Persons dogs property, when the Person is written to Realm within a write transaction, the dogs will be too! How cool is that?
If there’s in existing person that’s already been written. When it’s read in and new dogs are added to the person (within a write transaction) , they will also also be written.
Lastly, if there are Person and Dogs that have already been written, if a person is read in, and then a dog is read in, when the dog is added the Person Dog property within a write transaction, it will just update the person since the dog already exists.
Yes, very clear. I will try it and let you know on stackoverflow.
Thanks a million.
I have 2 or 3 open issues here if you have time like this one. and that one
PS: I wish MongoDB could provide a fully working one-to-many React Native example out of the box, but for some reasons, its not the case.