I'm using sequelize and I'm looking for the associations from the table, currently the relationship is hasMany - belongTo, BUT I would like to get the two associations in a single object
currently it's coming like this
"user": {
"id": 1,
"association1": [
{
"value": 133,
"association2": {
"name": "test",
}
}
]
}
Cause I wish it came this way
"user": {
"id": 1,
"association1": [
{
"value": 133,
"name": "test",
}
]
}