解决:(node:13080) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version.
用node链接mongo出现警告信息:
(node:13080) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(Use node --trace-deprecation ...
to show where the warning was created)
(node:13080) 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.
数据库连接成功
解决:(节点:13080)不推荐使用警告:当前的URL字符串分析器已不推荐使用,将在将来的版本中删除。要使用新的解析器,请将选项{useNewUr