sequelize.js - How can I update an attribute in a through table? -
in sequelize.js, how can update attribute in through table 1-n or n-m relationships? tried find documentation couldn't find any.
if user belongs many projects, , project has enrolled column can do
project.adduser(user, { enrolled: new date() }); this should work if relation betwene user , project set, in case join table updated.
the docs @ end of this section.
Comments
Post a Comment