-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
create_index([("hello", DESCENDING), ("world", ASCENDING)], name=None)
is raising this error:
pymongo.errors.OperationFailure: Error in specification { name: null, key: { hello: -1, world: 1 } } :: caused by :: The field 'name' must be a string, but got null, full error: {'ok': 0.0, 'errmsg': "Error in specification { name: null, key: { hello: -1, world: 1 } } :: caused by :: The field 'name' must be a string, but got null", 'code': 14, 'codeName': 'TypeMismatch'}
And according to the docs, it should create index with auto generated name