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

Investigate NODE-4103 - collection.watch doesn't respect promoteLongs option

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Not Needed

      NODE-4103 Description

      What problem are you facing?

      collection.watch doesn't respect promoteLongs option therefore small Long values are always emitted as Numbers

      What driver and relevant dependency versions are you using?

      mongodb@4.3.1

      Steps to reproduce?

      1. call collection.watch with `

      { promoteLongs: false }

      ` options
      2. insert a document with `

      { long: Long.fromNumber(0) }

      ` to given collection
      3. observe that the document emitted by the change stream has `long = 0`

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            dbeng-pm-bot PM Bot
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: