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.

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