📜  sequelize 包括停止返回连接表 - Javascript 代码示例

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

代码示例1
User.find({
    where: {id: userId}, attributes: userFields,
    include: [
      {model: db.Role, attributes: roleFields, through: {attributes: []}}
    ]
})