UpdateResult

case class UpdateResult(wrapper: UpdateResult)

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

See also:

com.mongodb.WriteConcern#UNACKNOWLEDGED

Since:

3.0

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

Value members

Concrete methods

def getMatchedCount: Task[Long]

Gets the number of documents matched by the query.

Gets the number of documents matched by the query.

Returns:

a Task of the number of documents matched

def getModifiedCount: Task[Long]

Gets the number of documents modified by the update.

Gets the number of documents modified by the update.

Returns:

a Task the number of documents modified

def getUpsertedId: Option[BsonValue]

If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise None.

If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise None.

Returns:

if the replace resulted in an inserted document, the _id of the inserted document, otherwise Noe

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