Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Join param filtering by eager relations #79

Open
parker789 opened this issue Feb 24, 2021 · 1 comment
Open

Join param filtering by eager relations #79

parker789 opened this issue Feb 24, 2021 · 1 comment

Comments

@parker789
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants