问题描述:

DeprecationWarning: current URL string parser is deprecated, and will be removed in a future versio
n. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.

解决方法:

加入 { useNewUrlParser: true } 则不再提示 DeprecationWarning: current URL string parser is deprecated, and will be removed in a future versio
n. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.