fix mongodb unsupported attributes error
Signed-off-by: Jacek Kałasz <jacek@konsternacja.pl>
This commit is contained in:
parent
112937d694
commit
6505b5a532
5
react-express-mongodb/backend/db/index.js
vendored
5
react-express-mongodb/backend/db/index.js
vendored
@ -7,11 +7,6 @@ exports.connect = (app) => {
|
|||||||
const options = {
|
const options = {
|
||||||
useNewUrlParser: true,
|
useNewUrlParser: true,
|
||||||
autoIndex: false, // Don't build indexes
|
autoIndex: false, // Don't build indexes
|
||||||
reconnectTries: 30, // Retry up to 30 times
|
|
||||||
reconnectInterval: 500, // Reconnect every 500ms
|
|
||||||
poolSize: 10, // Maintain up to 10 socket connections
|
|
||||||
// If not connected, return errors immediately rather than waiting for reconnect
|
|
||||||
bufferMaxEntries: 0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const connectWithRetry = () => {
|
const connectWithRetry = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user