MONGOC_BULKWRI..._UPDATERESULTS(3)
π MONGOC_BULKWRI..._UPDATERESULTS(3) π
okay so bestie, you're in the libmongoc girlies' corner of the manual pages now β this one's all about a function with a name so long it got its own abbreviation. no cap.
β¨ SYNOPSIS β¨
const bson_t *
mongoc_bulkwriteresult_updateresults (const mongoc_bulkwriteresult_t *self);
like, she takes one argument and gives you back a const bson_t *. that's the whole vibe.
πΈ DESCRIPTION πΈ
so this function hands you the results of every single individual update operation that was successfully performed. that's it, that's the whole job. π
here's what it looks like in practice, fr fr:
{
"0" : { "matchedCount" : 2, "modifiedCount" : 2 },
"1" : { "matchedCount" : 1, "modifiedCount" : 0, "upsertedId" : "foo" }
}
look at those lil numbered keys β "0" and "1" β each one carrying its own matchedCount, modifiedCount, and sometimes a little upsertedId moment. iconic.
β οΈ heads up bestie: this returns NULL if verbose results were not requested. she's not gonna manifest data that was never asked for, sorry π
you can turn on verbose results with mongoc_bulkwriteopts_set_verboseresults(). that's the switch. flip it. π«Ά
π AUTHOR π
MongoDB, Inc β yeah, that's the one. the whole crew.
π COPYRIGHT π
2009-present, MongoDB, Inc. β the legacy is long and the legacy is real.
okay that's the whole page, no notes π
β¨ version 2.5.6, dated Oct 09 β mwah, go forth and check your update results bestie π¦π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms