Skip to content

Commit

Permalink
Remove deprecated option from mongoose connection
Browse files Browse the repository at this point in the history
  • Loading branch information
columk1 committed Jan 19, 2024
1 parent bc79ee4 commit 1331093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeJS/testing_express/testing_database_operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const mongoose = require("mongoose");

const mongoDb = `YOUR MONGO URL`;

mongoose.connect(mongoDb, { useNewUrlParser: true });
mongoose.connect(mongoDb);
const db = mongoose.connection;
db.on("error", console.error.bind(console, "mongo connection error"));
```
Expand Down

0 comments on commit 1331093

Please sign in to comment.