sequelize nested include condition 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] }
]
})