Skip to content

Commit 7cdb67b

Browse files
committed
update : Mongoose parameters
1 parent fcf470e commit 7cdb67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/NodeJsWebApplication/config/mongoose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Database {
1616
}
1717

1818
_connect() {
19-
mongoose.connect(process.env.DB_CONFIG_MONGODB)
19+
mongoose.connect(process.env.DB_CONFIG_MONGODB, { useUnifiedTopology: true, useNewUrlParser: true})
2020
.then(() => {
2121
console.log('Database connection successful');
2222
})

0 commit comments

Comments
 (0)