首页 新闻 会员 周边

node mongoose 连接数据库添加配置项 useUnifiedTopology: true, 就连不上数据库了

0
悬赏园豆:40 [已关闭问题] 关闭于 2021-12-21 10:00

这是报的警告:
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.

于是我在配置项添加了 useUnifiedTopology: true

然后在运行项目就连接不上数据库了

时光凉忆的主页 时光凉忆 | 初学一级 | 园豆:159
提问于:2021-04-14 16:59
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册