Provided by: libmongoc-doc_1.30.2-1_all 

WARNING:
Deprecated since version 1.9.0: To get write results from write operations, instead use: • mongoc_collection_update_one() • mongoc_collection_update_many() • mongoc_collection_replace_one() • mongoc_collection_delete_one() • mongoc_collection_delete_many() • mongoc_collection_insert_one() • mongoc_collection_insert_many() • mongoc_bulkwrite_t • mongoc_bulk_operation_t
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: • mongoc_collection_update() • mongoc_collection_remove() • mongoc_collection_delete() • mongoc_collection_insert_bulk() • mongoc_collection_insert()
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.
AUTHOR
MongoDB, Inc
COPYRIGHT
2009-present, MongoDB, Inc. 1.30.2 Mar 05, 2025 MONGOC_COLLECTION_GET_LAST_ERROR(3)