bookstore icon indicating copy to clipboard operation
bookstore copied to clipboard

Update connection string for updated MongoDB

Open mphelps1978 opened this issue 5 years ago • 0 comments

I know, old repo, older video, but the information is still relevant.

in the connection string on app.js, if you don't append

{useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true }

then you will get some deprecation warnings.. New connection string should be:

mongoose.connect('mongodb://localhost/bookstore', {useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true });

Versions: Node 10.16.3 Express: 4.17.1 MongoDB: 4.2 Mongoose: 5.8.9

mphelps1978 avatar Jan 19 '20 23:01 mphelps1978