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

Support EJSON stringify from BigInt to $numberLong

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-5.0.0
    • Affects Version/s: None
    • Component/s: None
    • Not Needed

      Use Case

      As a driver engineer
      I want to add BigInt stringification to js-bson
      So that users can make use of native JS BigInts

      Open Questions

      • Should we truncate BigInts greater than 64 bits inside stringify?
        • Yes, we want it to have semantics that mirror those of BSON.serialize

      Acceptance Criteria

      Implementation Requirements

      • Ensure that stringify can correctly handle stringification of BigInt
      • Ensure that stringify does not use the trailing 'n' syntax used by BigInt natively

      Testing Requirements

      • Implement tests from User-facing syntax section of the design document
      • Ensure that stringify does not use the trailing 'n' syntax
      • Ensure that stringified BigInts have appropriate truncation behaviour (see Open questions)

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

              Created:
              Updated:
              Resolved: