Answers for "sequelize include stop returning the join table"

0

sequelize include stop returning the join table

User.find({
    where: {id: userId}, attributes: userFields,
    include: [
      {model: db.Role, attributes: roleFields, through: {attributes: []}}
    ]
})
Posted by: Guest on September-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language