DB/MongoDB
[ MongoDB ] MongoDB update : useUnifiedTopology: true
HEON.D
2021. 10. 10. 23:13
[MONGODB DRIVER] Warning: 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.
https://stackoverflow.com/questions/57895175/server-discovery-and-monitoring-engine-is-deprecated
Server Discovery And Monitoring engine is deprecated
I am using Mongoose with my Node.js app and this is my configuration: mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true,
stackoverflow.com
Mongoose 5.7.1 버전 useUnifiedTopology: true 옵션 추가됨
mongoose.connect(mongoConnectionString, {useNewUrlParser: true, useUnifiedTopology: true});