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 f60e639 commit 9cde4b9Copy full SHA for 9cde4b9
lib/operations/mongo_client_ops.js
@@ -590,7 +590,7 @@ function validOptions(options) {
590
const _validOptions = validOptionNames.concat(legacyOptionNames);
591
592
for (const name in options) {
593
- if (ignoreOptionNames.indexOf(name) !== -1) {
+ if (ignoreOptionNames.indexOf(name) !== -1 || !options.hasOwnProperty(name)) {
594
continue;
595
}
596
0 commit comments