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

Support EJSON stringification of UUID class directly

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Will support stringifying UUID instances directly. This does not need to be flagged and can be added as a feature improvement to the existing behavior.

      Acceptance Criteria

      Implementation Requirements

      • EJSON stringify should always serialize to $binary canonical format
      • Reuse logic from binary stringify section, we can call toBinary on the input UUID and treat it the same after that

      Testing Requirements

      • See if we can run the existing EJSON spec tests with UUID inputs where UUID Binary is used.
        • If not write prose that test new UUID() can work directly with stringify

      Documentation Requirements

      • Follow up with team on how this feature should be demonstrated.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: