Package com.mongodb.client.model.bulk
Interface ClientInsertOneResult
The result of a successful individual insert one operation.
Note that
WriteConcernErrors are not considered as making individual operations unsuccessful.- Since:
- 5.3
-
Method Summary
Modifier and TypeMethodDescriptionThe"_id"of the inserted document.
-
Method Details
-
getInsertedId
The"_id"of the inserted document.- Returns:
- The
"_id"of the inserted document. Present unless aRawBsonDocumentis inserted, because the driver neither generates the missing"_id"field for aRawBsonDocument, nor does it read the"_id"field from aRawBsonDocumentwhen inserting it.
-