How would I use Sequelize to find all people where a column in the relation satisfies a condition?
An example would be to find all Books whose author\'s last name is
In the newest version of Sequilize (5.9.0) the method proposed by @c.hill does not work.
Now you need to do the following:
return Book.findAll({ where: { '$Authors.lastName$': 'Testerson' }, include: [ {model: Author, as: Author.tableName} ] });