Join param filtering by eager relations
Opened this issue · 1 comments
parker789 commented
Hey,
Is there a way to query nested relations like you can using native withGraphJoined()
? I'd like to be able to filter columns like so:
where(children:pets.name, 'John');
thisiskalnins commented
Hey.
You can always use custom objection functionality in second parameter of build()
.
const { results, total } = findQuery(Users).build(query, Users.withGraphJoined('devices').page(1, 12));