MONGOC_READ_PREFS_GET_HEDGE(3)

πŸ’… MONGOC_READ_PREFS_GET_HEDGE(3) πŸ’…

okay so bestie, we're in the libmongoc manual and today's main character is mongoc_read_prefs_get_hedge() β€” but before we get into it, there's some lore you need 🫢

⚠️ deprecated since version MongoDB: Server 8.0 ⚠️ Hedged reads are deprecated in MongoDB version 8.0 and will be removed in a future release. So like… she still works, but she's on her way out, no cap. Use her with that in mind, or better yet, don't be surprised when she leaves the group chat permanently 😭

✨ SYNOPSIS ✨

const bson_t *
mongoc_read_prefs_get_hedge (const mongoc_read_prefs_t *read_prefs);

πŸŽ€ PARAMETERS πŸŽ€

  • read_prefs β€” a mongoc_read_prefs_t. That's it. That's the whole list, she's low maintenance πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

This function fetches any read preference hedge document that has been registered. Like, it goes and pulls up the hedge doc for you. Very demure, very mindful 🌸


⭐ RETURNS ⭐

Returns a bson_t that should not be modified or freed. fr fr β€” hands off, don't touch it, don't free it, just look at it respectfully πŸ‘€ It's not yours to keep bestie, it's giving borrow-not-own energy πŸ’€


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the icons who brought you this whole thing 🫢


2009-present, MongoDB, Inc. Every single year of it ✨


and that's the tea πŸ“ hope this helped, slay your read prefs πŸ’–

libmongoc version 2.5.6 β€” dated Oct 09, 2026 πŸŽ€ signing off, mwah πŸ’…

πŸ“¦ where this page comes from