📅  最后修改于: 2022-03-11 15:03:27.928000             🧑  作者: Mango
User.find({
where: {id: userId}, attributes: userFields,
include: [
{model: db.Role, attributes: roleFields, through: {attributes: []}}
]
})