Package com.mongodb.client.model.bulk
Interface ClientInsertOneResult
The result of a successful individual insert one operation.
Note that
WriteConcernError
s 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 aRawBsonDocument
is inserted, because the driver neither generates the missing"_id"
field for aRawBsonDocument
, nor does it read the"_id"
field from aRawBsonDocument
when inserting it.
-