Mongodb DeprecationWarning
See original GitHub issue-
mongodb version:3.2.10
-
express-session version:1.16.2
-
connect-mongo version:3.0.0
-
I found that connect-mongo triggered the warning。
-
express server started with warning:
(node:494260) 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 MongoClient.connect.
Part of code:
app.use(
session({
secret: this.session.secret,
cookie: {
httpOnly: true,
maxAge: 1000 * 60 * 60
},
resave: true,
saveUninitialized: false,
store: new MongoStore({
url: this.session.dbUrl
})
})
);
Issue Analytics
- State:
- Created 4 years ago
- Comments:16
Top Results From Across the Web
Mongoose v6.8.1: Deprecation Warnings
The MongoDB server has deprecated the count() function in favor of two separate functions, countDocuments() and estimatedDocumentCount() . DeprecationWarning: ...
Read more >MongoDB mongoose Deprecation Warning - Stack Overflow
Mongoose 5.2.9 version upgraded the native mongodb driver to 3.1.3 in which changes ... DeprecationWarning: collection.remove is deprecated.
Read more >Listening to events on the Db class has been deprecated and ...
Got this deprecation warning on Node v14.15.3 and Mongo v4.4.3. Is it safe to ignore? (node:44612) DeprecationWarning: Listening to events ...
Read more >PromiseLibrary deprecation warning - Drivers & ODMs
Hello, I'm using mongodb node.js driver version 4.1.2 and I want to specify bluebird as a promise library so I add this to...
Read more >Deprecation Warnings Using Node Driver - MongoDB
I'm currently testing all of this by getting the databases, logging that, then setting the database and logging it. The errors I'm getting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
any idea when this is going to be pushed to NPM? The NPM package hasn’t been updated yet, so users downloading from there still receive the deprecation warning.
Thank you with your advise