Support EJSON parse for BigInt from $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 EJSON parsing to js-bson
      So that users can make use of native JS BigInts

      Unknowns

      Acceptance Criteria

      Implementation Requirements

      • Ensure that EJSON.parse can handle parsing of $numberLong based on the value of the useBigInt64 flag. If true then it should be converted to a BigInt, otherwise it will retain the current behaviour

      Testing Requirements

      • Unit tests that directly inspect output of parse when passed $numberLong
      • Ensure that useBigInt64 defaults to false
      • Ensure that when useBigInt64 is false, previously implemented behaviour is unchanged
      • Ensure that examples in User-Facing syntax section of the design document are converted into unit tests

      Documentation Requirements

      • Update js-bson README to explain usage of useBigInt64 flag

              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: