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

Return server-generated _id from upsert

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

      getLastError after an old-style upsert includes the server-generated _id. Some application developers rely on this information. To preserve the same functionality in the update command with upserts, the command should also return server-generated _ids when an upsert results in an insert.

            Assignee:
            greg.mckeon@mongodb.com Gregory McKeon (Inactive)
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: