waterline associations: is it possible to create a related model when one model is created?

45 views
Skip to first unread message

Sarah Allen

unread,
Jun 20, 2016, 9:40:39 AM6/20/16
to sails.js
I'm trying to understand how associations work in SailsJS, so I created a little test project with a many-to-many relationship of User to Org with a through association (OrgMembership).  It seems to work if I create each model separately, but I thought (by reading other code) that I could create models like this:


Appreciate any help or references.

Thanks!
Sarah
Reply all
Reply to author
Forward
0 new messages