https://kotlinlang.org logo
#android
Title
# android
k

Khanzada Kashif

08/01/2022, 6:10 AM
Hey guyz, I am using Realm in my kmm project and performing CRUD operations in shared module, create operation is working fine whenever I add an object it is being added in the file, I have checked it with realm editor but when i try to read all data in the List of objects all the objects get overwritten with the default value of variables, meanwhile the data in the file stays the same. Does anyone know what could be the issue?
Copy code
fun getPackedOrders() : List<OrderEntity> = realm.query<OrderEntity>().find()
this is how I am reading data, I have tried .asFlow() as well.
😶 3
4 Views