public class Person extends RealmObject {
private Dog dog;
}
public class Dog extends RealmObject {
@LinkingObjects("dog")
private final RealmResults<PoolElement> owners = null;
}
嗨!有人知道是否有办法查询所有未附加到任何人的狗吗?
答案 0 :(得分:1)
尝试
realm.where(Dog.class).isEmpty("owners").findAll()