MONGOC_COLLECTION_WRITE_COMMAND_WITH_OPTS - Online Linux Manual Page
Section : 3 Updated : Feb 04, 2021 Source : 1.17.4 Note : libmongoc NAMEmongoc_collection_write_command_with_opts − mongoc_collection_write_command_with_opts()SYNOPSISbool
mongoc_collection_write_command_with_opts (mongoc_collection_t *collection,
const bson_t *command,
const bson_t *opts,
bson_t *reply,
bson_error_t *error);
Execute a command on the server, applying logic that is specific to commands that write, and taking the MongoDB server version into account. To send a raw command to the server without any of this logic, use mongoc_collection_command_simple. Use this function for commands that write such as "drop" or "createRole"(but not for "insert", "update", or "delete", see Basic Write Operations). Write concern and collation can be overridden by various sources. In a transaction, read concern and write concern are prohibited in opts. The highest−priority sources for these options are listed first in the following table. The write concern is omitted for MongoDB before 3.4.