MONGOC_CLIENT_GET_READ_PREFS(3)

πŸ’– MONGOC_CLIENT_GET_READ_PREFS(3) πŸ’–

okay bestie, welcome to the libmongoc manual πŸ’… this one is all about grabbing the default read prefs off a client, and it’s honestly pretty chill. no cap.


✨ SYNOPSIS ✨

const mongoc_read_prefs_t *
mongoc_client_get_read_prefs (const mongoc_client_t *client);

so here’s the tea β˜•: this function retrieves the default read preferences configured for the client instance. and bestie, listen β€” the result should not be modified or freed. like, do not touch it, do not free it, just let it live its life 🫢


πŸŽ€ PARAMETERS πŸŽ€

  • client β€” a mongoc_client_t. that’s the client you’re pulling the default read prefs from, periodt.

🌸 RETURNS 🌸

A mongoc_read_prefs_t ✨ and remember the vibe check: the result should not be modified or freed.


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


mwah πŸ’‹ that’s the whole page, bestie. this one comes from libmongoc version 2.5.6, dated Oct 09, 2026 πŸ¦‹βœ¨

πŸ“¦ where this page comes from