Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10403

Docs for SERVER-29154: Have mongo shell display and accept UUID as such instead of BinData(4, ...)

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.9
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Documentation Request Summary:

      The UUID() command now takes an optional 36 character string literal in RFC 4122 format, such as "3b241101-e2bb-4255-8caf-4136c566a962" and generates the corresponding BSON object using BinData subtype 4 (UUID). Without argument a random UUID in the RFC 4122 v4 format is generated.

      These UUIDs are presented in the shell using that same syntax:
      UUID("3b241101-e2bb-3255-7caf-4136c566a962")

      The old style 32 character string literal (without hyphens) is deprecated, but will still generate a BSON object using BinData subtype 3 (old UUID).

            Assignee:
            jeffrey.allen@mongodb.com Jeffrey Allen
            Reporter:
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              6 years, 29 weeks, 3 days ago