Use React Native Realm To Query Through Multiple List Objects
First day using React Native and Realm, and I'm having a hard time figuring how to perform a query through two Realm List Objects. Tasks have Reservations, which have Renters, whic
Solution 1:
You can filter through nested objects.
lettasks = realm.objects('Dog');
letxyzTasks = task.filtered('reservations.renters.first_name BEGINSWITH "xyz" OR reservations.renters.last_name BEGINSWITH "xyz"');
Reference: https://realm.io/docs/react-native/latest/#filtering
Post a Comment for "Use React Native Realm To Query Through Multiple List Objects"