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

cursor.stream should return a readable stream, and not mutate the cursor

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      See hhttps://github.com/mongodb/node-mongodb-native/blob/7a89d40b0d8a8475ac86ddc40957858d37d2f33b/lib/cursor.js#L1100

      Mutations here actually break the changestream behavior. We should return a ReadableStream that subscribes to the cursor's output.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: