-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 5.1.0, 4.14.0
-
Component/s: None
What problem are you facing?
When invoking:
client.db().admin().listDatabases({ nameOnly: true });
The nameOnly setting is ignored an NaN is always sent, see relevant src:
https://github.com/mongodb/node-mongodb-native/blob/main/src/operations/list_databases.ts#L44
AC
- respect the nameOnly setting on the options object passed in by the caller
- coerce the setting to boolean (alignment with listCollection nameOnly)
- Add tests