What is the best method to seeding a Node / MongoDB application?

前端 未结 4 1399
一个人的身影
一个人的身影 2021-02-05 11:15

So, I\'m new to the MEAN stack, and I\'ve hit a wall trying to seed MongoDB. I\'m using Mongoose to communicate with the database, and there\'s a bunch of documentation suggesti

4条回答
  •  离开以前
    2021-02-05 11:59

    I would also recommend looking into mongo-seeding. There is both a JS library version and a CLI version. The motivation for this library is described here.

提交回复
热议问题