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

XMLWordPrintableJSON

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

      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
              Reporter:
              TPM Jira Automations Bot
              Bailey Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: