Hi folks.
Primarily, sorry my bad english. rsrsrs
I have a little problem. This works well:
models.AgileBoardColumnModel.belongsToMany(models.TaskModel, { as: 'tasks',
through: 'agile_board_columns_tasks', foreignKey: 'column_id' });
models.TaskModel.belongsToMany(models.AgileBoardColumnModel, { as: 'tasks',
through: 'agile_board_columns_tasks', foreignKey: 'task_id' });
*JSON findAll() return:*
[
{
"id": 20,
"name": "Pendentes",
"tasks": [
{
"id": 7,
"description": "Coluna 1",
"*agile_board_columns_tasks*": { *(<---- Here i want the name to
be"column")*
"order": 1,
"task_id": 7,
"column_id": 20
}
}
]
}
]
**
thanks!
*Att.,*
*Eric A. da Rocha*
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/CANG95mKQqRoEHnC2Kx2E4PyEtSX4MEd1_H6cRgwgvhyUwOWj%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.