mongoc_collection_get_last_error()#

Synopsis#

const bson_t *
mongoc_collection_get_last_error (const mongoc_collection_t *collection);

Parameters#

Description#

mongoc_collection_get_last_error() returns write results from some operations:

Returns#

A bson_t that should not be modified or NULL. The returned bson_t is may be invalidated by the next operation on collection.