RealmCopyTransform

fun <T : RealmModel, R> RealmCopyTransform(): RealmModelTransform<T, R>

A RealmModelTransform implementation that simply copies the managed RealmModel instance to a non managed one using Realm.copyFromRealm. This is the default behavior for RealmQueryBuilder<T>.asFlow.

Note: For heavily nested RealmModels, this transform is undesirable since it brings the entire object into application memory. In those cases consider using a custom transform that maps the given RealmModel to a subset of required data.