What are the differences in returning the data of a query Realm.io
that are in the form of RealmList
or RealmResults
?
What are the differences in returning the data of a query Realm.io
that are in the form of RealmList
or RealmResults
?
I leave you the documentation of RealmResults and RealmList where you can see the differences of each one and I'll give you a brief summary of the basics you should know:
ReamList
is used to make one-to-many relationships of Realm
objects and basically it is a ArrayList
that can be used within a RealmObject thing that RealmResults
can not.
RealmResults
will always be the result of a query and only has references of the objects returned by that query.