Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5489

[SERVER] Comment on: "manual/reference/command/findAndModify.txt"

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • 4.4.0, 6.0.0, 6.3, 7.0.0-rc0
    • manual, Server
    • 1

    Description

      Docs say:

      "The findAndModify method ignores the new option for remove operations"

      But the code says something different:

      if ( returnNew ) {
          errmsg = "remove and returnNew can't co-exist";
          return false;
      }
      

      Note: it has been like this since v2.2.

      Attachments

        Activity

          People

            jason.price@mongodb.com Jason Price
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              28 weeks ago