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

Return server-generated _id from upsert

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.4
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: