InsertManyResult

case class InsertManyResult(wrapper: InsertManyResult)

The result of an insert many operation. If the insert many was unacknowledged, then wasAcknowledged will return false and all other methods will throw UnsupportedOperationException.

See also:

com.mongodb.WriteConcern#UNACKNOWLEDGED

Since:

4.0

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def getInsertedIds: Task[Map[Integer, BsonValue]]

An unmodifiable map of the index of the inserted document to the id of the inserted document.

An unmodifiable map of the index of the inserted document to the id of the inserted document.

Note: Inserting RawBsonDocuments does not generate an _id value and it's corresponding value will be null.

Returns:

A Task of type map of the index of the inserted document to the id of the inserted document.

def wasAcknowledged(): Boolean

Returns true if the write was acknowledged.

Returns true if the write was acknowledged.

Returns:

true if the write was acknowledged

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product