用MongoDB时发生报错:
MongoError: connection destroyed, not possible to instantiate cursor
据说是在查找100条以上数据时就会报这个错。
解决方法

在toArray中进行关闭数据库就不会报错了。
用MongoDB时发生报错:
MongoError: connection destroyed, not possible to instantiate cursor
据说是在查找100条以上数据时就会报这个错。
解决方法
本文标题:mongodb的一个错误解决方法
本文链接:https://www.haomeiwen.com/subject/nuheuftx.html
网友评论