-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
The version option is not accepted by the server. The correct option should be "v" and its valid values are 1 or 2 instead of 0/1. This change will allow users to create legacy v:1 indexes, although this option is undocumented in the command reference.
Considering the version option will be rejected by the server anyway, changing it to "v" should have no external impacts.
AC:
- When constructing the `createIndexes` command in `Collection.createIndex()` and `Collection.createIndexes()`, attach the `v` option to the command with the value of `CreateIndexOptions.version`
- Test index creation with explicit index version
- is duplicated by
-
MONGOSH-1719 v:1 option ignored by createIndex which still creates a v:2 index
- Closed
- related to
-
DRIVERS-2854 update the index management spec to use the `v` option instead of `version` for createIndex
- Backlog