mongodb-driver v0.5.1 Mongo.UpdateResult View Source
The successful result struct of Mongo.update_one/5
, Mongo.update_many/5
and Mongo.replace_one/5
. Its fields are:
:matched_count
- Number of matched documents:modified_count
- Number of modified documents:upserted_ids
- If the operation was an upsert, the upserted ids
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Mongo.UpdateResult{
acknowledged: boolean(),
matched_count: non_neg_integer(),
modified_count: non_neg_integer(),
upserted_ids: [BSON.ObjectId.t()]
}
t() :: %Mongo.UpdateResult{ acknowledged: boolean(), matched_count: non_neg_integer(), modified_count: non_neg_integer(), upserted_ids: [BSON.ObjectId.t()] }