Warning on Connecting to MongoDB with a Node server

后端 未结 5 1425
有刺的猬
有刺的猬 2021-02-01 03:16

Connecting with MongoDB native driver

I wrote following code to connect mongodb through native driver which has been install with npm install mongodb --save

5条回答
  •  醉梦人生
    2021-02-01 03:40

    My advice is to leave it as it is (maybe place a warning). The useUnifiedTopology: true option does not work correctly.

    More precisely, in the event of a loss of connection to the DBMS, it will never be restored. Current version 3.3.3 does not solve this problem.

    Check this

提交回复
热议问题