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

possible to obtain id for modified record in updateOne result?

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved: