Add accessibility of lastErrorObject to find_and_modify()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.5
    • Affects Version/s: 2.4.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              sam.helman@10gen.com
              Reporter:
              sam.helman@10gen.com
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: