Support BSON serialization of the UUID class directly in bson-ext

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Description

      *C++ code need to be modified to know about the UUID class, it currently doesn't have logic to look for that constructor
      *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 in BSON-EXT

      Documentation Requirements

      *Follow up with team how we want to advertise this feature

            Assignee:
            Unassigned
            Reporter:
            Aditi Khare (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: