Docs Menu

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.

←  Class DeleteResultClass UpdateResult →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.