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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -