MONGOC_URI_GET_READ_PREFS(3)

NAME
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.

COLOPHON
This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.