[DOCS-9150] Comment on: "manual/reference/method/db.collection.findOneAndReplace.txt" Created: 15/Oct/16  Updated: 30/Oct/23  Resolved: 12/Nov/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7, docs-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndReplace/
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Referrer: https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndDelete/
Screen Resolution: 1920 x 1080


Participants:
Days since reply: 4 years, 13 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

Wrong output:

db.scores.findOneAndReplace(
{ "score" :

{ $lt : 22250 }

},

{ "team" : "Therapeutic Hamsters", "score" : 22250 }

,
{ sort :

{ "score" : 1 }

, project:

{ "_id" : 0, "team" : 1 }

}
)

will return

{ "team" : "Cuddly Zebras" }

 Comments   
Comment by Githook User [ 12/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-9150: findOneAndReplace example fix (additional rewrite/reorg to come)
Branch: v3.2
https://github.com/mongodb/docs/commit/7b8a27cacfc2c835575ce87d3e21982cf2f20686

Comment by Githook User [ 12/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-9150: findOneAndReplace example fix + some light formatting (additional rewrite/reorg to come)
Branch: v3.4
https://github.com/mongodb/docs/commit/f212986dcc0712756314b1f334c6158670c4c192

Comment by Githook User [ 12/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-9150: findOneAndReplace example fix + some light formatting (additional rewrite/reorg to come)
Branch: v3.6
https://github.com/mongodb/docs/commit/a35e8ac78ffd2444839c09b55e9d3ad3b746c172

Comment by Githook User [ 12/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-9150: findOneAndReplace example fix + some light formatting (additional rewrite/reorg to come)
Branch: v4.0
https://github.com/mongodb/docs/commit/832f8976101b385d65c9cf59641114386f135683

Comment by Githook User [ 12/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-9150: findOneAndReplace example fix + some light formatting (additional rewrite/reorg to come)
Branch: master
https://github.com/mongodb/docs/commit/992e35797d256c8a1a54d2830c6006554e5add2f

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