Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-953

Driver does not respect batchSize in requests for new batches after first when using AggregationCursor

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2.25
    • Affects Version/s: None
    • Component/s: None
    • None

      collection.aggregate([ { $match: { a: 1 } }, { $limit: 6 } ], { cursor: { batchSize: 2 } });
      

      The code defined above will return a `Cursor` which returns an initial batch of size 2, but subsequent batches that contain up to the default batchSize of 1000.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: