Open fstn opened 7 years ago
I am interested in doing this too. I am wondering if there would be a place that we could inject the logic to handle this?
Thanks, Douglas
Something like that
Project.use({
list: {
fetch: {
before(request, response, context) {
if (!isEmpty(request.query) && request.query.name) {
context.include = [{
model: Task,
attributes: [ 'name' ],
where: { name: request.query.name },
}];
}
return context.continue;
},
},
},
});
Hi, Is there any way to filter on association column?
Sequelize equivalent:
this is what I want to query: