Package io.realm.mongodb.mongo.result
Class InsertOneResult
- java.lang.Object
-
- io.realm.mongodb.mongo.result.InsertOneResult
-
public class InsertOneResult extends Object
The result of an insert one operation.
-
-
Constructor Summary
Constructors Constructor Description InsertOneResult(BsonValue insertedId)
Constructs a result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BsonValue
getInsertedId()
Returns the _id of the inserted document.
-
-
-
Constructor Detail
-
InsertOneResult
public InsertOneResult(BsonValue insertedId)
Constructs a result.- Parameters:
insertedId
- the _id of the inserted document.
-
-
Method Detail
-
getInsertedId
public BsonValue getInsertedId()
Returns the _id of the inserted document.- Returns:
- the _id of the inserted document.
-
-