📜  如何在 sequelize 中进行连接并从第三个表中选择内容 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:53.884000             🧑  作者: Mango

代码示例1
User.findAll({
  include: [{
    model: Project,
    through: {
      attributes: ['createdAt', 'startedAt', 'finishedAt'],
      where: {completed: true}
    }
  }]
});