rename (or alias) findAndModify to modifyAndReturn

XMLWordPrintableJSON

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

      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 - Query Team (Inactive)
            Reporter:
            Asya Kamsky
            Votes:
            11 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: