首页 > 其他分享> > mongoose连接运行报错DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and
mongoose连接运行报错DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and
作者:互联网
错误提示如下: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 } to the MongoClient constructor.
解决方案:
如图中红色标记,添加提示的内容,问题解决
![](https://g.csdnimg.cn/static/user-reg-year/1x/2.png)
标签:engine,DeprecationWarning,Server,current,报错,Monitoring,Discovery 来源: https://blog.csdn.net/qq_41716608/article/details/104466443