I have to classes stored using Realm.io (and therefore extending RLMObject) : class A and B, with class A having a property of type B. I would like to query all objects of class A where A.b.propertyX=something, but I can't get it working. Maybe is it not even possible ?
Realm v0.81.0 now supports querying over a relationship. Here's how it works:
[A objectsWhere:@"b.propertyX == 'something'"]
or
[Person objectsWhere:@"ANY dogs.name == 'Alfonso'"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With