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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • bson-4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • 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

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

              Created:
              Updated:
              Resolved: