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

Bad aggregation-cursor docs

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.3
    • Affects Version/s: None
    • Component/s: None
    • None

      The example snippet for MotorCollection.aggregate with a cursor is missing a "yield" statement:

      http://motor.readthedocs.org/en/stable/api/motor_collection.html#motor.MotorCollection.aggregate

      Additionally, aggregation is becoming prominent enough it should be included in the tutorial and / or examples sections.

      Reported here:

      http://stackoverflow.com/questions/24127427/python-motor-offers-fetch-next-exception-on-aggregation

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: