realm-kotlin
realm-kotlin copied to clipboard
Allow RealmResults, RealmList, RealmSet and RealmDictionary to be returned from Realm.write
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.
We should also investigate if support platform types like Pair, Tripple and Collection would be easy to add.