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

Make UUID a subclass of Binary

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

      Acceptance Criteria

      Implementation Requirements

      • make UUID class extend from Binary class
      • remove _bsontype test cases for serialize
      • Remove unused UUID bson serialization (serialize.ts) case

      Testing Requirements

      • Test both $uuid and $binary EJSON cases, and make sure they have the same behavior
        •  EJSON.stringify
        • EJSON.parse
      • Remove _bsontype == 
        BSON_BINARY_SUBTYPE_UUID_NEW test cases for UUID

      Documentation Requirements

      • Yes, need to include that EJSON.stringify }}and {{EJSON.parse will begin working for UUID types
      • Make changes to Design Ease: of Using UUIDs

      Unknowns

      • Typescript subclass handling

      Follow up

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

              Created:
              Updated:
              Resolved: