Vincit/objection-find

Join param filtering by eager relations

Opened this issue · 1 comments

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');

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));