-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Documentation
The javadoc for BulkWriteResult.getUpserts() says
> Gets an unmodifiable list of *upserted* items, or the empty list if there were none.
Arguably, "upserted items" is a bit ambiguous as a user might expect that to be populated when there's an update. The mongo shell documentation for https://docs.mongodb.com/manual/reference/method/BulkWriteResult/#BulkWriteResult.upserted is a little more specific, as it states:
> An array of documents that contains information for each document *inserted* through operations with the Bulk.find.upsert() option.