We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ae37a2 commit 8dc2416Copy full SHA for 8dc2416
lib/topologies/native_topology.js
@@ -14,9 +14,10 @@ class NativeTopology extends Topology {
14
{
15
cursorFactory: Cursor,
16
reconnect: false,
17
- emitError: options.emitError,
18
- size: options.poolSize,
19
- monitorCommands: options.monitorCommands
+ emitError: typeof options.emitError === 'boolean' ? options.emitError : true,
+ size: typeof options.poolSize === 'number' ? options.poolSize : 5,
+ monitorCommands:
20
+ typeof options.monitorCommands === 'boolean' ? options.monitorCommands : false
21
}
22
);
23
0 commit comments