InsertMany with InsertOptions should allow for unordered data structure

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.6.1
    • Component/s: API
    • None
    • None
    • Major Change
    • None
    • None
    • None
    • None
    • None
    • None

      Since methods like insertMany accept both a List of elements and an InsertManyOptions which may allow for unordered insertion the API should allow for unordered collections to be passed in instead of the Always ordered java.util.List.

      I'm attaching a PR where I propose for the methods that accept Lists of elements and InsertManyOptions to be changed from:

      void insertMany(List<? extends TDocument> documents, InsertManyOptions options);
      

      to:

      void insertMany(Collection<? extends TDocument> documents, InsertManyOptions options);
      

            Assignee:
            Unassigned
            Reporter:
            Ricardo Espirito Santo
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: