-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.6.0, 3.6.1, 3.6.2
-
Component/s: Querying
-
None
-
Query 2018-02-12
When running the following code (in Node.js):
collection.updateMany({type: "a"},{"$set":{b: "c"}}, cb)
the response object does not show me which records have been updated.
It only tells me the matchedCount and modifiedCount.
Could you please add an array named something like: "modifiedIds" containing all _id's of the records that have been updated.
This way you do not require two seperate calls to mongodb to update multiple records and get their _id's.
Please also see my stackoverflow question for aditional information and the example.
https://stackoverflow.com/questions/43743931/is-it-possible-to-get-all-the-ids-of-updated-records-in-mongodb-using-updatema
- duplicates
-
SERVER-714 Allow findandmodify to retreive more than 1 record at a time
- Open
- related to
-
SERVER-11753 Allow findAndModify/Update to use a tailable cursor (w/await_data)
- Open
-
SERVER-12858 Return detailed stats from write commands
- Backlog