sequelize get associated models code example
Example: nested include sequelize
models.products.findAll({
include: [
{model: models.comments, include: [models.comments.users] }
]
})
models.products.findAll({
include: [
{model: models.comments, include: [models.comments.users] }
]
})