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 23f1ac9 commit c9dc717Copy full SHA for c9dc717
lib/operations/mongo_client_ops.js
@@ -596,7 +596,7 @@ function validOptions(options) {
596
const _validOptions = validOptionNames.concat(legacyOptionNames);
597
598
for (const name in options) {
599
- if (ignoreOptionNames.indexOf(name) !== -1) {
+ if (ignoreOptionNames.indexOf(name) !== -1 || !options.hasOwnProperty(name)) {
600
continue;
601
}
602
0 commit comments