-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: BSON
Use Case
As a developer
I want strings in BSON to be stored as a sequence of bytes.
So that my app does not error with invalid UTF8 strings.
User Experience
- Users can opt-in to using a new BSONString type that stores the raw byte sequence.
Dependencies
- Any downstream projects that can have invalid UTF8 in their strings.
Risks/Unknowns
- None
Acceptance Criteria
Implementation Requirements
- Create a new BSONString class that users can opt in to deserialize to.
- Allow users to instantiate a BSONString with a byte sequence.
- Allow BSONStrings to be serialized
- Add EJSON support for BSONStrings
Testing Requirements
- Unit tests
Documentation Requirements
- DOCSP ticket for new BSON type.
Follow Up Requirements
- None
- depends on
-
NODE-6800 Standardize BSON option controls
-
- Ready for Work
-
- is depended on by
-
COMPASS-9274 Investigate changes in NODE-6895: Store BSON strings as byte sequences
-
- Needs Triage
-