public class Person extends RealmObject {
private Dog dog;
}
public class Dog extends RealmObject {
@LinkingObjects("dog")
private final RealmResults<PoolElement> owners = null;
}
Hi! Does anybody know if there's a way to query all Dogs not attached to any person?
Try
realm.where(Dog.class).isEmpty("owners").findAll()