How to seed a mongoDB mongoose database

后端 未结 0 967
太阳男子
太阳男子 2021-01-07 09:30

I am stuck with creating an array of roles and capabilities On the seed.js file. I want to first check for the roles if there are no roles then I update the role object.

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