DOKK / manpages / debian 11 / libmongoc-doc / mongoc_collection_get_last_error.3.en
MONGOC_COLLECTION_GET_LAST_ERROR(3) libmongoc MONGOC_COLLECTION_GET_LAST_ERROR(3)

mongoc_collection_get_last_error - mongoc_collection_get_last_error()

const bson_t *
mongoc_collection_get_last_error (const mongoc_collection_t *collection);


collection: A mongoc_collection_t.

The mongoc_collection_get_last_error() function returns a bulk result. See Bulk Write Operations for examples of bulk results.

A write_concern must be at least MONGOC_WRITE_CONCERN_W_DEFAULT in last command execution for this to be available.

A bson_t that should not be modified or NULL.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6