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

Relate #110

Closed
Thomas-git opened this issue Aug 18, 2020 · 1 comment
Closed

Relate #110

Thomas-git opened this issue Aug 18, 2020 · 1 comment

Comments

@Thomas-git
Copy link
Contributor

Is it possible to do a relate query as in objection doc :
https://vincit.github.io/objection.js/api/query-builder/mutate-methods.html#relate

If yes, how can I do that ?

@dekelev
Copy link
Member

dekelev commented Aug 26, 2020

You can call any custom ObjectionJS method you want on the query-builder object using model's modifiers, which runs before the query actually executes.

@dekelev dekelev closed this as completed Aug 26, 2020
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