I have a query that looks like this:
User.find({
include: {
relation: 'Comment',
scope: {
where: {
text: {
like: '%some text'
}
}
}
}
}, function (err, users) { ... })
Everything works great, but i want to be able to query only the users that commented "some text", like a inner join.
How can i do that?