index = self.xiaoMiQuanCollection.createIndex ({"unique_charcter": 1, "name": "hashed"}, {"unique": True})
res = self.xiaoMiQuanCollection.find (index)
TypeError: "Collection" object is not callable. If you meant to call the "createIndex" method on a" Collection" object it is failing because no such method exists.
I am also wrong to write ensureIndex, ask for advice-sharp-sharp-sharp topic description