Realm Android Nested Query
问题 Given the below classes and relationships, I need a RealmResults < Model1 > that satisfies the following requirements: Model1 int id RealmList<Model2> Model2 int id int model1Fk int type RealmList<Model3> Model3 int model2Fk I want to query all the Model1 entities that, for a specific Model2 related instance type, that Model2 instance has at least one Model3 related instance. In SQL that would be (Haven't tested it): select distinct model1.* from Model1 model1 join Model2 model2 on model2