saabeilin
saabeilin

Reputation: 620

Realm, complex linked query

in the official docs, https://realm.io/docs/java/latest/#link-queries - there's an example how to select owners of "Brown Fluffy" dogs.

My questions is, how do I select only those not having Brown Fluffy (and, obviously, those having no dogs at all)

I do not see how can one achieve this result by, say, using .not().beginGroup().equalTo(...).equalTo(...).endGroup() (that someone with previous SQL experience would try)

Thanks a lot in advance!

Upvotes: 1

Views: 570

Answers (1)

EpicPandaForce
EpicPandaForce

Reputation: 81539

Have you tried

.not().equalTo(...).findAll().where().not().equalTo(...).findAll();

?

Chaining link queries is a bit tricky, but if I understand correctly, that is what you should try.

Upvotes: 1

Related Questions