Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4405

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Not Needed

      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@mongodb.com Neal Beeken
            Reporter:
            aditi.khare@mongodb.com Aditi Khare
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: