Answers for "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. next js"

2

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.

mongoose.connect(mongoConnectionString, {useNewUrlParser: true, useUnifiedTopology: true});
Posted by: Guest on February-13-2020

Code answers related to "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. next js"

Browse Popular Code Answers by Language