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

Add promoteUUIDs option to the EJSON parse API

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Acceptance Criteria

      Implementation Requirements

      • Add checks for the promoteUUIDs option to the EJSON.parse API
      • If option is set, return a UUID instance instead of Binary for UUIDv4 (subtype 4) EJSON sequences.
        • Handle both $uuid and $binary cases

      Testing Requirements

      • Test both $uuid and $binary EJSON cases
      • Test promoteUUIDs false and omitted are the same behavior

      Documentation Requirements

      • Potential new docs page on "BSON types" in general how our classes can be used?
      • Sync with team.

            Assignee:
            aditi.khare@mongodb.com Aditi Khare (Inactive)
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: