[JAVA-2499] Document that MongoCollection#insertMany throws exception if document list is null or empty Created: 19/Apr/17  Updated: 29/Oct/23  Resolved: 17/May/22

Status: Closed
Project: Java Driver
Component/s: Documentation
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents JAVA-2436 Consider allowing zero-document inserts Closed
Backwards Compatibility: Fully Compatible
Documentation Changes: 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.



 Comments   
Comment by Githook User [ 17/May/22 ]

Author:

{'name': 'Sammy Tran', 'email': '48728844+sammytran277@users.noreply.github.com', 'username': 'sammytran277'}

Message: Document IllegalArgumentException for bulk insert (#935)

JAVA-2499
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/89e1cfc1aed4c997bb99bfa217e7d38472265f61

Generated at Thu Feb 08 08:57:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.