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

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -