find zwraca MotorCursor . Uzyskaj fetch_next kursora właściwość, aby przesunąć kursor i wywołać next_object() aby pobrać bieżący dokument:
@gen.coroutine
def do_find():
cursor = db.test_collection.find({'i': {'$lt': 5}})
while (yield cursor.fetch_next):
document = cursor.next_object()
print document
Zapoznaj się z sekcją samouczka Zapytywanie więcej niż jeden dokument
aby uzyskać instrukcje dotyczące korzystania z funkcji find Motoru i MotorCursor .