What is a TransientTransactionError in Mongoose (or MongoDB)?

前端 未结 16 1820
庸人自扰
庸人自扰 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条回答
  •  不知归路
    2020-11-27 08:09

    1. Go to your mongoDB Atlas Dashboard
    2. Open Network Access (its there in side navbar)
    3. Click on ADD IP ADDRESS
    4. Click on allow from Any IP Address ( it basically give access to your dynamic IP address)

    Now you are done.

提交回复
热议问题