How to get count on MongoDB's Motor driver?

Viewed 2863

I want to get count with Motor's diver but I got this error.

AttributeError: 'AsyncIOMotorCursor' object has no attribute 'count'

This is my code:

await MOTOR_CURSOR.users.find().count()
1 Answers
Related