-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Fully Compatible
-
Execution Team 2022-06-13
Currently if you call prepareUnique: true on a unique index, the index spec will still be changed, which is kind of confusing:
{ "v" : 2, "key" : { "a" : 1 }, "name" : "a_unique", "unique" : true, "prepareUnique" : true }
It seems prepareUnique: true should just be a noop on a unique index, and not change the index spec.