-
Type:
Task
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
Add support for serializing UUID instances to Binary subtype 4 BSON bytes directly. Users should not need to call UUID.toBinary() before using any of our APIs. This does not need to be controlled with a new option and will be added as a new feature improvement to the existing behavior.
Acceptance Criteria
Implementation Requirements
- When calling BSON.serialize with uuid as input, it is not a requirement to convert new BSON.UUID() to binary
Testing Requirements
- Add a test that asserts UUID.toBinary() and UUID direct serialization are always equivalent
Documentation Requirements
- Follow up with team how we want to advertise this feature
- related to
-
NODE-4417 Support BSON serialization of the UUID class directly in bson-ext
-
- Closed
-