[SERVER-7968] findAndModify option to return before and after Created: 17/Dec/12  Updated: 06/Dec/22

Status: Open
Project: Core Server
Component/s: Write Ops
Affects Version/s: None
Fix Version/s: features we're not sure of

Type: New Feature Priority: Major - P3
Reporter: Marcelo Taube Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: insert, query
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:
Case:

 Description   

I think findAndModify should enable to request all valid data, i.e. All the values from the fields when the document is found and the new _id if upserted.

Currently I want to decide if I need the old data or the new _id. Because i need both I have to restort back to a separate find and update.



 Comments   
Comment by Scott Hernandez (Inactive) [ 02/Oct/13 ]

Marcelo,

Do you have a use-case which you expect to work? A script/sample would help to make this request clear.

Comment by Marcelo Taube [ 17/Dec/12 ]

And I meant: "Currently I have to decide", not "currently I want to decide"

Comment by Marcelo Taube [ 17/Dec/12 ]

Yes please

Comment by Derick Rethans [ 17/Dec/12 ]

marcelo Should I move this to the SERVER project then?

Comment by Marcelo Taube [ 17/Dec/12 ]

Strange, I did not intended to submit this to the php driver although it is really my frontend.

Generated at Thu Feb 08 03:16:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.