MONGOC_COLLECTION_READ_WRITE_COMMAND_WITH_OPTS - Online Linux Manual Page
Section : 3 Updated : Feb 04, 2021 Source : 1.17.4 Note : libmongoc NAMEmongoc_collection_read_write_command_with_opts − mongoc_collection_read_write_command_with_opts()SYNOPSISbool
mongoc_collection_read_write_command_with_opts (
mongoc_collection_t *collection,
const bson_t *command,
const mongoc_read_prefs_t *read_prefs /* UNUSED */,
const bson_t *opts,
bson_t *reply,
bson_error_t *error);
Execute a command on the server, applying logic for commands that both read and 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 both read and write, such as "mapReduce" with an output collection. Read and 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. Read preferences are not applied. The write concern is omitted for MongoDB before 3.4.