realm-kotlin icon indicating copy to clipboard operation
realm-kotlin copied to clipboard

Allow RealmResults, RealmList, RealmSet and RealmDictionary to be returned from Realm.write

Open sync-by-unito[bot] opened this issue 3 years ago • 1 comments

Currently, we only allow RealmObjects to be returned from Realm.write. We should allow other Realm types as well.

We have previously talked about allowing standard collection types or e.g. Pair to be returned as well, but since it is very tricky to check if these contain Live objects, adding support for these are not part of this PR and still await more user feedback.

sync-by-unito[bot] avatar Aug 15 '22 11:08 sync-by-unito[bot]

We should also investigate if support platform types like Pair, Tripple and Collection would be easy to add.

cmelchior avatar Aug 19 '22 08:08 cmelchior