AsyncIOMotorLatentCommandCursor on Aggregate.

XMLWordPrintableJSON

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

      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
            Reporter:
            Ramon Garcia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: