WriteResult
final class WriteResult (View source)
The MongoDB\Driver\WriteResult class encapsulates information about an executed MongoDB\Driver\BulkWrite and may be returned by MongoDB\Driver\Manager::executeBulkWrite().
Methods
No description
Returns the number of documents deleted
Returns the number of documents inserted (excluding upserts)
Returns the number of documents selected for update
Returns the number of existing documents updated
Returns the number of documents inserted by an upsert
Returns an array of identifiers for upserted documents
Returns any write concern error that occurred
Returns any write errors that occurred
No description
Returns whether the write was acknowledged
Details
final
__wakeup()
No description
final int|null
getDeletedCount()
Returns the number of documents deleted
final int|null
getInsertedCount()
Returns the number of documents inserted (excluding upserts)
final int|null
getMatchedCount()
Returns the number of documents selected for update
final int|null
getModifiedCount()
Returns the number of existing documents updated
final Server
getServer()
Returns the server associated with this write result
final int|null
getUpsertedCount()
Returns the number of documents inserted by an upsert
final array
getUpsertedIds()
Returns an array of identifiers for upserted documents
final WriteConcernError|null
getWriteConcernError()
Returns any write concern error that occurred
final array
getWriteErrors()
Returns any write errors that occurred
final array
getErrorReplies()
No description
final bool
isAcknowledged()
Returns whether the write was acknowledged