What is a TransientTransactionError in Mongoose (or MongoDB)?

前端 未结 16 1815
庸人自扰
庸人自扰 2020-11-27 07:36

I have server.js and db.js The db.js file interacts with my database using Mongoose and I use server.js to call functions

16条回答
  •  猫巷女王i
    2020-11-27 07:55

    Using mLab -- When your cluster is created, you need to add a database user (under the users tab) and make sure to not click the Make read-only checkbox. Once I did this, the errors went away. I was getting the same errors as above. The database user can be your login user name and password.

提交回复
热议问题