当我试图在python文件中调用explain()时,它给出了一个错误: 'Collection' object is not callable.If you meant to call the 'explain' method on a 'Collection' object it is failing because no such methodexists. db.collection.explain()
我正在尝试基于某些条件使用python代码从我本地的mongodb集合中删除文档。我收到错误集合:‘TypeError’对象不可调用。如果您打算在“Collection”对象上调用“delete_many”方法,则该方法将失败,因为不存在此类方法。
我试过使用find_one_and_delete,但没有成功。任何帮助都是非常感谢的。= [ list of collecti