-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Service Arch
-
Fully Compatible
-
v8.0
-
Service Arch 2024-04-01, Service Arch 2024-04-15, Service Arch 2024-04-29, Programmability 2024-05-27, Programmability 2024-06-10
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
An example:
A create command for clustered collections has the following format:
{ create: <coll name> clusteredIndex: { key: <doc> unique: <bool> } }
If I try to create a clustered collection but I forget the unique field I get this error message, which is misleading:
> db.runCommand({create: 'cc', clusteredIndex: {key: {_id: 1}}}) { "ok" : 0, "errmsg" : "BSON field 'create.unique' is missing but a required field", "code" : 40414, "codeName" : "IDLFailedToParse", ... }
The field clusteredIndex.unique is missing, not create.unique.
- is duplicated by
-
SERVER-89019 Wrong error given when `create` is missing from a clusteredIndex.
-
- Closed
-