Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose connection increase timeout in node js

mongoose.connect(uri, {
  useUnifiedTopology: true,
  serverSelectionTimeoutMS: 1*1000, // 1s timeout
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongoose #connection #increase #timeout #node #js
ADD COMMENT
Topic
Name
6+8 =