File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ You should use [@ladjs/graceful][lad-graceful] to manage process SIGHUP and grac
8585| ` debug ` | Boolean | If ` process.env.MONGOOSE_DEBUG ` is truthy, then it is ` true ` , otherwise ` false ` | set with [ mongoose.set] [ mongoose.set ] |
8686| ` id ` | Boolean | undefined | set with [ mongoose.set] [ mongoose.set ] |
8787| ` timestamps.createdAt.immutable ` | Boolean | undefined | set with [ mongoose.set] [ mongoose.set ] |
88- | ` maxTimeMS ` | Boolean | undefined | set with [ mongoose.set] [ mongoose.set ] |
88+ | ` maxTimeMS ` | Number | ` 5000 ` | set with [ mongoose.set] [ mongoose.set ] |
8989| ` objectIdGetter ` | Boolean | undefined | set with [ mongoose.set] [ mongoose.set ] |
9090| ` overwriteModels ` | Boolean | undefined | set with [ mongoose.set] [ mongoose.set ] |
9191| ` returnOriginal ` | Boolean | undefined | set with [ mongoose.set] [ mongoose.set ] |
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ class Mongoose {
2929 } ,
3030 debug : boolean ( process . env . MONGOOSE_DEBUG ) ,
3131 strict : true ,
32- strictQuery : false
32+ strictQuery : false ,
33+ maxTimeMS : 5000 // default 5s timeout for a query to complete
3334 } ,
3435 config
3536 ) ;
You can’t perform that action at this time.
0 commit comments