Support EJSON stringify from BigInt to $numberLong

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Warren James (Inactive)
              Neal Beeken
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: