To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect

#1

I’ve been warning for a couple of months… what should I do to rectify it?

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.

2 Likes
#2

Is this still the case?

#3

I’ve not updated yet, 2 - 3 is going to take some time