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
The thing is I can't simply get pull requests that have no reviews. The query I want to trigger can look like the following:
SELECT *
FROM pullrequest LEFT OUTER JOIN review
ON pullrequest.id=review.pullrequest_id
WHERE review.pullrequest_id IS NULL;
I tried to achieve this by doing the following:models.pullrequest.find({ reviews: [] });
but I only got: SELECT "id", "number", "created_at", "finished_at", "state", "merged", "owner_id", "owner_name", "repository_id" FROM "pullrequest".
This is just one example of something I can't retrieve (or don't know how to do it), but another can be to get those pull requests which have any review which state is some specific text.
That's it and thanks in advance!
The text was updated successfully, but these errors were encountered:
mishuagopian
changed the title
Can't filter by associations property on relation
Can't filter by associations property on relation (filtered join)
Jan 26, 2017
Hi @dresende @dxg , I'm getting some trouble to get the query I want to trigger. My models are simple and are the following:
The thing is I can't simply get pull requests that have no reviews. The query I want to trigger can look like the following:
I tried to achieve this by doing the following:
models.pullrequest.find({ reviews: [] });
but I only got:
SELECT "id", "number", "created_at", "finished_at", "state", "merged", "owner_id", "owner_name", "repository_id" FROM "pullrequest"
.This is just one example of something I can't retrieve (or don't know how to do it), but another can be to get those pull requests which have any review which state is some specific text.
That's it and thanks in advance!
The text was updated successfully, but these errors were encountered: