Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13979

rename (or alias) findAndModify to modifyAndReturn

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • Labels:
      None
    • Query

      A lot of confusion is caused by the name of `findAndModify` command as "find and modify" is literally what an update does. Since findAndModify actually returns the document that was updated, a less confusing name would be something descriptive like modifyAndReturn or updateAndReturn.

      To be not-backwards breaking it could be an alias for existing command until such time as it could be deprecated.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            11 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: