DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true }
![nodejs连接MongoDB数据库运行时报错:(node:2728) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. - 叶子0321~ - 博客园 nodejs连接MongoDB数据库运行时报错:(node:2728) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. - 叶子0321~ - 博客园](https://img2020.cnblogs.com/blog/1638624/202010/1638624-20201020093811951-1993142429.png)
nodejs连接MongoDB数据库运行时报错:(node:2728) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. - 叶子0321~ - 博客园
Error: (node:13356) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology:
![nodejs连接MongoDB数据库运行时报错:(node:2728) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. - 叶子0321~ - 博客园 nodejs连接MongoDB数据库运行时报错:(node:2728) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. - 叶子0321~ - 博客园](https://img2020.cnblogs.com/blog/1638624/202010/1638624-20201020094150075-2026537283.png)
nodejs连接MongoDB数据库运行时报错:(node:2728) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. - 叶子0321~ - 博客园
![DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true }](https://user-images.githubusercontent.com/17257834/66040813-6d5e0500-e4e6-11e9-8e04-5e517ea191a7.jpg)
DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true }
![How to fix «current Server Discovery and Monitoring engine is deprecated» on a MongoDB connection using the `mongodb` Node.js package? - df.tips How to fix «current Server Discovery and Monitoring engine is deprecated» on a MongoDB connection using the `mongodb` Node.js package? - df.tips](https://df.tips/uploads/default/original/1X/fd8fd32297a705106a80ff6e92483465a726692a.png)
How to fix «current Server Discovery and Monitoring engine is deprecated» on a MongoDB connection using the `mongodb` Node.js package? - df.tips
![javascript - Pass option { useUnifiedTopology: true } to the MongoClient constructor - Stack Overflow javascript - Pass option { useUnifiedTopology: true } to the MongoClient constructor - Stack Overflow](https://i.stack.imgur.com/QKW2Z.png)