View Source Mongo.BulkWriteResult (mongodb-driver v1.4.1)
The successful result struct of Mongo.BulkWrite.write
. Its fields are:
:acknowledged
- Write-concern:matched_count
- Number of matched documents:modified_count
- Number of modified documents:inserted_count
- Number of inserted documents:deleted_count
- Number of deleted documents:upserted_count
- Number of upserted documents:upserted_ids
- If the operation was an upsert, the upserted ids:inserted_ids
- If the operation was an insert, the inserted ids:errors
- If the operation results in an error, the error is collected
Summary
Types
@type t() :: %Mongo.BulkWriteResult{ acknowledged: boolean(), deleted_count: non_neg_integer(), errors: [map()], inserted_count: non_neg_integer(), inserted_ids: [BSON.ObjectId.t()], matched_count: non_neg_integer(), modified_count: non_neg_integer(), upserted_count: non_neg_integer(), upserted_ids: [BSON.ObjectId.t()] }
Functions
Link to this function