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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.9
    • Component/s: Aggregation Framework
    • Labels:
      None
    • ALL

      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 }
      });
      

            Assignee:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Reporter:
            josef.sabl Josef Sábl
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: