mongoc_uri_get_read_prefs()

Synopsis

const bson_t *
mongoc_uri_get_read_prefs (const mongoc_uri_t *uri);

Parameters

uri

A mongoc_uri_t.

Description

Fetches a bson document containing all of the read preference information from an URI. This includes such features as read tags.

Returns

Returns a bson document that should not be modified or freed.