Scroll to navigation

MONGOC_BULK_OPERATION_SET_COMMENT(3) libmongoc MONGOC_BULK_OPERATION_SET_COMMENT(3)

SYNOPSIS

void
mongoc_bulk_operation_set_comment (

mongoc_bulk_operation_t *bulk, const bson_value_t *comment);


PARAMETERS


DESCRIPTION

Assigns a comment to attach to all commands executed as part of this bulk <>. The comment will appear in log messages, profiler output, and currentOp output. Comments for write commands are only supported by MongoDB 4.4+.

It is prohibited to call this function after adding operations to the bulk <>.

Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

December 11, 2025 2.2.1