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

Refactor cursor to separate getting the next document from the next batch

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.8.0
    • Affects Version/s: None
    • Component/s: None
    • 3
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      As a Node.js engineer
      I want an internal API that grabs the initial or next batch for a cursor without combining that with getting the next document
      So that I don't have to apply controls on how to go about fetching (blocking, transform etc)

      User Impact

      • None

      Dependencies

      • Potentially CSOT, the fetchBatch API breaks apart the synchronous step of shifting out a document and running a network operation.

      Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Migrate floating next function to class method fetchBatch
        • fetchBatch returns void, cursor APIs, operate on documents array and cursor id value before and after fetchBatch to determine when to call it

      Testing Requirements

      *

      Documentation Requirements

      • None

      Follow Up Requirements

      • None

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: