_id index is not displayed as unique

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 4.0.9
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The automatically generated index on _id is a uniqe index as far as I have read and tried.
      But if you do db.collection.getIndexes() in the mongo shell, the index does not show "unique" : true, like other unique indexes do.
      This seems a bit confusing to me.
      Shouldn't the _id index be shown as unique, as it actually is a unique index?

              Assignee:
              Unassigned
              Reporter:
              Björn Kautler
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: