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.
1 parent 730f243 commit ba0450fCopy full SHA for ba0450f
common/services/mongoose.service.js
@@ -3,12 +3,10 @@ let count = 0;
3
4
const options = {
5
autoIndex: false, // Don't build indexes
6
- reconnectTries: 30, // Retry up to 30 times
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,
11
- //geting rid off the depreciation errors
+ // all other approaches are now deprecated by MongoDB:
12
useNewUrlParser: true,
13
useUnifiedTopology: true
14
0 commit comments