【发布时间】:2020-03-29 19:38:52
【问题描述】:
我想统计一下 Motor's Diver,但我收到了这个错误。
AttributeError: 'AsyncIOMotorCursor' object has no attribute 'count'
这是我的代码:
await MOTOR_CURSOR.users.find().count()
【问题讨论】:
-
好久没用Mongo了,count_documents呢?
标签: python mongodb pymongo motorengine