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

Deprecate the ModifyResult type

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.12.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 2
    • Not Needed
    • Not Needed

      Node's findOneAnd* methods have a different return type than specified in the CRUD spec.  Our helpers return a ModifyResult, which contain the modified document as a property, but the spec says to return the modified document.

      Acceptance Criteria

      • Deprecate the modify result type.
      • Add a type test to capture any future changes.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Daria Pardue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: