Investigate changes in NODE-6895: Store BSON strings as byte sequences

    • Type: Investigation
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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

              Assignee:
              Unassigned
              Reporter:
              TPM Jira Automations Bot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: