Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1058

Find One and Update doesn't return document by default

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

      The default for behavior for findAndModify is to return a document, but in the Ruby driver, the "find_one_and_" commands don't return a document unless called specifically using the :return_document option. This differs from, say, the Python driver (I believe), and it's cumbersome when implementing into the code.

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            fivepapertigers Jacob Griswold-Moran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: