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.
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!