Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2499

Document that MongoCollection#insertMany throws exception if document list is null or empty

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • Documentation
    • None
    • Fully Compatible
    • Not Needed

    Description

      To clarify proper usage, provide additional Javadoc for MongoCollection#insertMany specifying that it throws an IllegalArgumentException if the documents list is either null or empty, or any of the documents within the list are null.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: