[SERVER-48133] Return insertedIds from insertMany() even if there are failures Created: 08/May/20 Updated: 06/Dec/22 Resolved: 18/May/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Vytenis - | Assignee: | Backlog - Server Tooling and Methods (STM) (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Server Tooling & Methods
|
| Participants: |
| Description |
|
It would be more aesthetically pleasing if insertMany returned all inserted IDs. db.test.insertMany([{}, {}]) returns 2 values in insertedIds, while db.test.insertMany([{_id: 1}, {_id: 1}]) does not return 1 value in insertedIds, even though there is one successful insert. |
| Comments |
| Comment by Robert Guo (Inactive) [ 18/May/20 ] |
|
The mongo shell is in maintenance mode for the most part. If you need new features, please consider checking out mongosh |
| Comment by Carl Champain (Inactive) [ 13/May/20 ] |
|
Thank you for the report. Kind regards, |
| Comment by Tim Fogarty [ 12/May/20 ] |
|
Hi monrealis@gmail.com, it sounds like you're asking about a feature in the MongoDB Shell. I've moved this to the SERVER project on Jira which is the best place to ask about the shell. |