Answers for "how to do joins in sequelize and select things from the third table"

0

how to do joins in sequelize and select things from the third table

User.findAll({
  include: [{
    model: Project,
    through: {
      attributes: ['createdAt', 'startedAt', 'finishedAt'],
      where: {completed: true}
    }
  }]
});
Posted by: Guest on December-27-2021

Code answers related to "how to do joins in sequelize and select things from the third table"

Code answers related to "Javascript"

Browse Popular Code Answers by Language