We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 870eff3 + a17be28 commit c7b6c0cCopy full SHA for c7b6c0c
common/services/mongoose.service.js
@@ -7,9 +7,12 @@ const options = {
7
reconnectInterval: 500, // Reconnect every 500ms
8
poolSize: 10, // Maintain up to 10 socket connections
9
// If not connected, return errors immediately rather than waiting for reconnect
10
- bufferMaxEntries: 0
+ bufferMaxEntries: 0,
11
+ //geting rid off the depreciation errors
12
+ useNewUrlParser: true,
13
+ useUnifiedTopology: true
14
+
15
};
-
16
const connectWithRetry = () => {
17
console.log('MongoDB connection with retry')
18
mongoose.connect("mongodb://mongo:27017/rest-tutorial", options).then(()=>{
0 commit comments