collection.save() does not support fullResult

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor - P4
    • 2.0, 1.4.9
    • Affects Version/s: 1.4.8
    • Component/s: None
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      collection.insert() and collection.update() both support a fullResult option which can return the writeResult for the operation.

      Shouldn't collection.save() support the same flag because it is effectively a switch for insert() or update() based on the presence of an _id. This could allow downstream code to know if it was an upsert, or modify that occurred.

              Assignee:
              Christian Amor Kvalheim
              Reporter:
              Owen Allen
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: