Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Class InsertOneResult

On this page

  • io.realm.mongodb.mongo.result
  • Constructors
  • Method Summary
  • Inherited Methods
  • Constructor Detail
  • Method Detail
  • getInsertedId
java.lang.Object
io.realm.mongodb.mongo.result.InsertOneResult

The result of an insert one operation.

Constructor and Description
BsonValue insertedId
)

Constructs a result.

Modifier and Type
Method and Description
public BsonValue

Returns the _id of the inserted document.

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

BsonValue insertedId
)

Constructs a result.

Parameters

  • insertedId - the _id of the inserted document.

public BsonValue getInsertedId ()

Returns the _id of the inserted document.

Returns

the _id of the inserted document.

Back

DeleteResult