Accessing other models in a Sequelize model hook function

前端 未结 2 1555
北恋
北恋 2021-02-19 13:05

I\'m trying to create a model hook that automatically creates an associated record when the main model has been created. How can I access my other models within the hook functio

2条回答
提交回复
热议问题