-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Shell
-
None
Currently, the createIndex helper for the Db and Collection classes return the name of the created index. This differs from db.createIndexes being called with one index, which returns the full command response from the server.
The createIndex helpers should be updated to return the full command response like db.createIndexes.
db.createIndexes should be updated to return an array of names of the indexes created. This will bring the driver into compliance with the spec.
- is depended on by
-
MONGOSH-467 Update driver to 4.0
- Closed
-
MONGOSH-501 createIndex methods return only index name
- Closed
- is duplicated by
-
NODE-2922 createIndexes returns only index name instead of document
- Closed
- is related to
-
NODE-2569 'CommitQuorum' option support for 'createIndexes’ command on MongoDB 4.4
- Closed