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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            rebecca.weinberger Rebecca Weinberger
            Reporter:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: