Pymongo - TypeError: index 'xxxx' cannot be applied to Cursor instances
最近在使用pymongo过程中,遇到如标题问题始终不得其解,最后gg解决原因如下:find()methodwillalwaysreturnafullcursorratherthanasingledocument,evenifthewhereclausespecifiestheprimarykeyfield,_id解决方法:Thesolutionwasclear:replacethefind()me