mongoc_collection_get_last_error()#
Warning
Deprecated since version 1.9.0: To get write results from write operations, instead use:
Synopsis#
const bson_t *
mongoc_collection_get_last_error (const mongoc_collection_t *collection);
Parameters#
collection
: A mongoc_collection_t.
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
.