Fill in _id value for inserted docs

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.6.1
    • Component/s: Shell
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The _id value should be set in the document by the shell (driver) before it is sent to the server.

      > var test =

      {a:1}

      > db.test11.insert(test)
      > test

      { "a" : 1 }

      — I would like to see the _id field after the insert

      > var test =

      {a:1}

      > db.test11.insert(test)
      > test

      { "_id" : ObjectId("...."), "a" : 1 }

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: