[DOCS-5489] [SERVER] Comment on: "manual/reference/command/findAndModify.txt" Created: 22/May/15  Updated: 30/Oct/23  Resolved: 27/Jul/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: 4.4.0, 6.0.0, 6.3, 7.0.0-rc0
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Minor - P4
Reporter: Randolph Tan Assignee: Jason Price
Resolution: Done Votes: 0
Labels: quick-win, server-docs-bug-bash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/command/findAndModify/
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36
Referrer: https://www.google.com/
Screen Resolution: 1920 x 1080
repo: docs
source: reference/command/findAndModify


Issue Links:
Related
is related to DOCS-4968 findAndModify no longer changes retur... Closed
Participants:
Days since reply: 28 weeks ago
Story Points: 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.



 Comments   
Comment by Jason Price [ 26/Jul/23 ]

https://github.com/10gen/docs-mongodb-internal/pull/4162

Generated at Thu Feb 08 07:50:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.