Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1699

Fill in _id value for inserted docs

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

      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:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: