-
Type:
Task
-
Resolution: Won't Do
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Acceptance Criteria
Implementation Requirements
- Add checks for the promoteUUIDs option to the EJSON.parse API
- If option is set, return a UUID instance instead of Binary for UUIDv4 (subtype 4) EJSON sequences.
- Handle both $uuid and $binary cases
Testing Requirements
- Test both $uuid and $binary EJSON cases
- Test promoteUUIDs false and omitted are the same behavior
Documentation Requirements
- Potential new docs page on "BSON types" in general how our classes can be used?
- Sync with team.
- related to
-
NODE-4506 Make UUID a subclass of Binary
-
- Closed
-