Class InsertOneResult


  • public class InsertOneResult
    extends Object
    The result of an insert one operation.
    • 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.