答案 0 :(得分:0)
您必须添加模型的包含,每个步骤都具有关联。
const users = await db.User.findAll({
include: [{
model: db.Country,
as: 'Country',
include: [{
model: db.City,
as: 'Cities',
where: {} // here goes your condition
}]
}],
});