You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.
https://adonisjs.com/docs/4.1/query-builder#_whereexists
The example for
whereExists
goes like thisBut this has the following output
As you can see, it puts single quotes around
accounts.user_id
so it looks for records whereusers.id
is literallyaccounts.user_id
.If you look at Laravel's
whereExists
example they actually use awhereRaw
here. https://laravel.com/docs/5.7/queriesBut personally I think
whereColumn
would be even better. It seems that Adonis does not support this method though.Same problem applies to the
whereNotExists
example.The text was updated successfully, but these errors were encountered: