Why doesn't sequelize include associated model to a nested object in the results?
Advertisements I have two associated models: TariffsModel and PoliciesModel. PoliciesModel has tariff_id which refers to specific tariff by its ID. And this works but Sequelize returns the result in a weird way: instead of returning: PoliciesModel { id: 1, owner_party_id: 2, tariff: { id: 1, is_active: true, … }, … } it returns: PoliciesModel {… Read More Why doesn't sequelize include associated model to a nested object in the results?