[SERVER-13979] rename (or alias) findAndModify to modifyAndReturn Created: 17/May/14 Updated: 06/Dec/23 Resolved: 05/Feb/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Asya Kamsky | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Won't Fix | Votes: | 11 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Query
|
||||
| Participants: | |||||
| Description |
|
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. |