MONGOC_BULKWRI..._INSERTRESULTS(3)
π MONGOC_BULKWRI..._INSERTRESULTS(3) π
okay bestie, we're in the libmongoc manual and this page is all about mongoc_bulkwriteresult_insertresults() β it's lowkey giving receipts for your successful insert vibes β¨
β¨ SYNOPSIS β¨
const bson_t *
mongoc_bulkwriteresult_insertresults (const mongoc_bulkwriteresult_t *self);
πΈ DESCRIPTION πΈ
This function returns the results of each individual insert operation that was successfully performed. It's literally the "which inserts ate?" report π
Example, fr fr:
{
"0" : { "insertedId" : "foo" },
"1" : { "insertedId" : "bar" }
}
But bestie, important: it returns NULL if verbose results were not requested π. To get verbose results, request them with mongoc_bulkwriteopts_set_verboseresults() β that's the move π«Ά
π AUTHOR π
MongoDB, Inc β iconic, no notes.
π COPYRIGHT π
2009-present, MongoDB, Inc. β periodt.
mwah π this page is from libmongoc version 2.5.6, dated Oct 09, 202 (the footer is a lil truncated, no cap β it runs right into MONGOC_BULKWRI..._INSERTRESULTS(3)). Bye bestie, go get those verbose results ππ¦
π¦ 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