Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38234

The 'cursor' option is required.. even if it is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 3.6.9
    • Fix Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Operating System:
      ALL

      Description

      After running this aggregation, I get this error: The 'cursor' option is required, except for aggregate with the explain argument

      The cursor IS THERE. When I remove the out stage it works.

      db.StatEvent.aggregate([
          {
              $match: {
                  'time': {$gt: timeLastRun}
              }
          },
          {$out: tempAggrName}
      ], {
      	cursor: { batchSize: 0 }
      });
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stennie Stennie Steneker
              Reporter:
              josef.sabl Josef Sábl
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: