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

Add promoteUUIDs option to the BSON deserialization API 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

      Description

      A new option promoteUUIDs will be added to our BSON library. It will control the type that Binary subtype 4s are deserialized to. The driver will adopt and offer this option on the MongoClient, Db, Collection, and CRUD API layers repeating the pattern of BSON option inheritance.

      Acceptance Criteria

      Implementation Requirements

      •  Have BSON type return UUID when promoteValues = true, otherwise return Binary

      Testing Requirements

      • Test Binary.toUUID() error cases are appropriately raised from deserialization when promoteUUIDs is enabled. (ex. Byte array incorrect length)

      Documentation Requirements

      • Follow up with team

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            aditi.khare@mongodb.com Aditi Khare
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: