Sequelize self referencing Many to Many

后端 未结 0 1471
广开言路
广开言路 2021-01-31 13:27

I have a sequelize table which is self refrencing as below .

User.belongsToMany(User, {
  as: \'friends\',
  foreignKey: \'user_id\',
  through: Users_Friends,
})         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题