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

Bad aggregation-cursor docs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 0.3
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: