Add promoteUUIDs option to the EJSON parse API

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: 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 (Inactive)
              Reporter:
              Neal Beeken
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: