Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-492

Add accessibility of lastErrorObject to find_and_modify()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.4.2
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      Description

      Currently, the find_and_modify() shell helper does not expose the lastErrorObject result as described in the docs (http://docs.mongodb.org/manual/reference/command/findAndModify/). This could be of use in some situations, for instance checking whether the find_and_modify() resulted in an upsert or an update.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: