MONGOC_COLLECTION_FIND_WITH_OPTS - Online Linux Manual Page

Section : 3
Updated : Feb 04, 2021
Source : 1.17.4
Note : libmongoc

NAMEmongoc_collection_find_with_opts − mongoc_collection_find_with_opts()

SYNOPSIS mongoc_cursor_t * mongoc_collection_find_with_opts (mongoc_collection_t *collection, const bson_t *filter, const bson_t *opts, const mongoc_read_prefs_t *read_prefs) BSON_GNUC_WARN_UNUSED_RESULT;

PARAMETERS • collection: A mongoc_collection_t​. • filter: A ­bson_t containing the query to execute. • opts: A ­bson_t query options, including sort order and which fields to return. Can be NULL​. • read_prefs: A mongoc_read_prefs_t or NULL​.

DESCRIPTIONQuery on collection, passing arbitrary query options to the server in opts​. To target a specific server, include an integer "serverId" field in opts with an id obtained first by calling mongoc_client_select_server, then mongoc_server_description_id on its return value. Read preferences, read concern, and collation can be overridden by various sources. In a transaction, read concern and write concern are prohibited in opts and the read preference must be primary or NULL. The highest−priority sources for these options are listed first in the following table. No write concern is applied.
ERROR : https://linux0001.com/man : please email : johanes_gumabo@yahoo.co.id