Search with an alias in sequelize

后端 未结 0 1288
轮回少年
轮回少年 2020-12-19 22:42

Hope you are doing well. I have these relations in Sequelize:

Product.belongsTo(Category, {
  foreignKey: "categoryId",
  as: "category",
         


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