You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call copyToRealmOrUpdate() on an existing root object, it will overwrite the child objects with their new data. Note: You'll have orphaned children if the updated root object no longer refers to them. For example Person "Bob" refers to two Dogs, "Fox" and "Rex". But then "Fox" dies and when you call copyToRealmOrUpdate() with a new version of "Bob" you'll still have "Fox" dangling in Realm but "Bob" no longer refers to it.
Reacted by Dawid Hyży, NitroG42, joe muers, Roberto Martin, Illia Achour, Juliane Lehmann and Jakub Truhlář
@VenomVendor I would love to be able to promise that - pending a common understanding of "soon" ;-) While core already has some support for this, we also need to solve it in the context of Sync before we are ready to expose it in SDKs. There are some constraints on that front that makes it hard for us to predict timelines. But this is one of the major features that soon will be highest on the priority list. The best I can say right now is that it's not abandoned, we will get it done - it's likely in the top-5 priority list of bigger items that we hope to tackle "soon". I know that's pretty vague...Not sure if that helps you.
@bmunkholm Thanks for your explanation. We use Realm-js for a project. This feature is fifth priority in your list and expressing the order of priority does not help us much to plan. If you can provide an approximate date to add this feature.
Activity
kneth commentedon May 21, 2015
Android/Java issue: realm/realm-java#1104
fryossi commentedon Nov 10, 2016
Please include a solution for updating an existing object (delete the children before update).
finnschiermer commentedon Nov 10, 2016
@fryossi Could you be more specific, I'm not sure I understand exactly what you're asking for?
fryossi commentedon Nov 10, 2016
As @snowpong wrote:
11 remaining items
bmunkholm commentedon Jun 21, 2018
@VenomVendor I would love to be able to promise that - pending a common understanding of "soon" ;-) While core already has some support for this, we also need to solve it in the context of Sync before we are ready to expose it in SDKs. There are some constraints on that front that makes it hard for us to predict timelines. But this is one of the major features that soon will be highest on the priority list. The best I can say right now is that it's not abandoned, we will get it done - it's likely in the top-5 priority list of bigger items that we hope to tackle "soon". I know that's pretty vague...Not sure if that helps you.
alihesari commentedon Jun 23, 2018
@bmunkholm Thanks for your explanation. We use Realm-js for a project. This feature is fifth priority in your list and expressing the order of priority does not help us much to plan. If you can provide an approximate date to add this feature.
bmunkholm commentedon Jun 24, 2018
As we unfortunately can’t provide a timeline, I would suggest you to not depend on this feature for your project.
pedrosimao commentedon Sep 1, 2018
I would love to see this on Realm JS.
RealmBot commentedon Apr 17, 2020
➤ Jørgen Edelbo commented:
Does embedded objects solve this?