-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
Use Case
As a driver engineer
I want to add BigInt deserialization to js-bson
So that users can make use of native JS BigInts
Unknowns
Acceptance Criteria
Implementation Requirements
- Ensure that when a BSON int64 value is encountered during deserialization, the output is controlled by the useBigInt64 flag. If true, then it should be converted to a BigInt, otherwise, it will retain the current behaviour of returning a BSON.Long
- Ensure that useBigInt64 flag is false by default
Testing Requirements
- Check that flag supersedes promoteLongs and promoteValues effects on serialization of Longs.
- Ensure that flag defaults to false
- Ensure that when flag 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
- is duplicated by
-
NODE-4875 Support BigInt64 deserialization in js-bson
- Closed