-
Type: Investigation
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Iteration Iguanodon
-
Not Needed
The Node driver's Db.command() helper currently supports all options that the command helpers support. This is problematic for two reasons:
- the runCommand helper is generic and should not support options that are specific to certain commands
- some options, such as `readConcern` are prohibited from being automatically applied by the driver in the generic "command" method (see https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.rst#id22)
Our `db.command()` helper should only consider options that are not command related (e.g, bson serialization options).
Acceptance Criteria
- Remove the following options in v6
The following options are supported because of the inheritance design of our operations layer and should be removed:
willRetryWrite?: any; omitReadPreference?: any; writeConcern?: any; explain?: any; readConcern?: any; collation?: any; maxTimeMS?: any; comment?: any; retryWrites?: any; dbName?: any; authdb?: any; noResponse?: any;
- depends on
-
NODE-4936 Remove command-specific options in generic runCommand helper
- Closed
- related to
-
MONGOSH-1478 dropIndex() not working with readPreference=secondary in mongosh
- Closed