Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11304

Aggregation 3.6 examples fail without cursor option

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      With the exception of the explain example, all of the aggregate examples that do not include cursor: {} return the following error message when run using mongod and mongo shell version 3.6.2:

      "The 'cursor' option is required, except for aggregate with the explain argument"
      

      This seems to contradict the text in the Example section, that suggests one does not need to specify the cursor if using db.collection.aggregate().

      Running the examples on mongod and mongo shell version 3.4.12 works as written.

      Attachments

        Activity

          People

            Unassigned Unassigned
            brian.moss@mongodb.com Brian Moss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 38 weeks ago