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

possible to obtain id for modified record in updateOne result?

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      upsertedId is populated for upsert operations. would it be possible to include something like an updatedId to report on the id of the modified record?

      i have a situation where i am going after a record with a query not involving _id, but i subsequently need the value of _id

      Attachments

        Activity

          People

            mark.agarunov Mark Agarunov
            tony-kerz tony kerz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: