You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings, I really like your application, in fact I have learned a lot with the details of your explanation, but there is a function that I can not find, or I do not know where it comes from. and for future consultations of other tables know how to implement them.
[err, companies] = await to(user.getCompanies({include: [ {association: Company.Users} ] }));
where “user.getCompanies” came from
Excuse my english, I’m supporting myself in google. Thank you.
The text was updated successfully, but these errors were encountered:
Hi ! Did you found the answer by yourself ?
The getCompanies() function is defined by Sequelize, it is used to request datas from foreign key in the database. In your user.model.js you have
Greetings, I really like your application, in fact I have learned a lot with the details of your explanation, but there is a function that I can not find, or I do not know where it comes from. and for future consultations of other tables know how to implement them.
[err, companies] = await to(user.getCompanies({include: [ {association: Company.Users} ] }));
where “user.getCompanies” came from
Excuse my english, I’m supporting myself in google. Thank you.
The text was updated successfully, but these errors were encountered: