DOKK / manpages / debian 13 / libmongoc-doc / mongoc_bulkwriteresult_insertresults.3.en
MONGOC_BULKWRITERESULT_INSERTRESULTS(3) libmongoc MONGOC_BULKWRITERESULT_INSERTRESULTS(3)

const bson_t *
mongoc_bulkwriteresult_insertresults (const mongoc_bulkwriteresult_t *self);


Returns the results of each individual insert operation that was successfully performed. Example:

{

"0" : { "insertedId" : "foo" },
"1" : { "insertedId" : "bar" } }


Returns NULL if verbose results were not requested. Request verbose results with mongoc_bulkwriteopts_set_verboseresults().

MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4