📜  在 sequelize 中包含 where 子句 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:34.905000             🧑  作者: Mango

代码示例1
Document.findAll({
where: {'$employee.manager.id$': id},
      include: [{
        model: models.Employee,
        required: true,
        as: 'employee',
        include: [{
          model: models.Manager,
          required: true,
          as: 'manager',
          where: { id: managerId },
        }],
      }],