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, ...)

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.9
    • None
    • None
    • None

    Description

      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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 19 weeks, 2 days ago