logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Deprecated since version 1.9.0: To get write results from write operations, instead use:

Author

       MongoDB, Inc

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()

Parameters

collection: A mongoc_collection_t.

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.

Synopsis

          const bson_t *
          mongoc_collection_get_last_error (const mongoc_collection_t *collection);

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_tmongoc_bulk_operation_t

See Also