Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-233

collection.save() does not support fullResult

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

      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:
            christkv Christian Amor Kvalheim
            Reporter:
            owenallenaz Owen Allen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: