Return insertedIds from insertMany() even if there are failures

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Server Tooling & Methods
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Backlog - Server Tooling and Methods (STM) (Inactive)
              Reporter:
              Vytenis -
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: