I am trying to access the Mongo DB with the new mongoose version (4.11.0): "mongoose.connect("mongodb://localhost/restful_blog_app");"
I got the following message:
open()
is deprecated in mongoose >= 4.11.0, use openUri()
instead, or
set the useMongoClient
option if using connect()
or createConnection()
I tried the following fix:
"mongoose.connect("mongodb://localhost/restful_blog_app", {useMongoClient: true});"
Conclusion: That message has disappeared, but the DB I just created has no data!
Please help!