Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-520

AsyncIOMotorLatentCommandCursor on Aggregate.

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.3.1
    • Component/s: Docs
    • None
    • Environment:
      Ubuntu 19.10.
      Python3.

      I'm trying to fetch results from an aggregate operation, using this syntax:

       
      list(db.seller.aggregate(pipeline))

       ** however i've not gotten any result. Also i tried using syntax specified in documentation

      (async for and yield) , but it didn't also work. 

      Using list shows this : 'AsyncIOMotorLatentCommandCursor' object is not iterable

      What's the correct way to iterate over this cursor?

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            rgarcia@lorebi.com Ramon Garcia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: