MONGOC_READ_MODE_T(3)

✨ MONGOC_READ_MODE_T(3) ✨ β€” Read Preference Modes

okay bestie, so this one is from libmongoc and it's literally the page about read preference modes πŸŽ€ it's short, it's sweet, and it's giving "small but mighty" energy. let's get into it πŸ’…


🌸 SYNOPSIS 🌸

like, here's the whole vibe in code form, copy-pasted with love and zero typos:

typedef enum {
   MONGOC_READ_PRIMARY = (1 << 0),
   MONGOC_READ_SECONDARY = (1 << 1),
   MONGOC_READ_PRIMARY_PREFERRED = (1 << 2) | MONGOC_READ_PRIMARY,
   MONGOC_READ_SECONDARY_PREFERRED = (1 << 2) | MONGOC_READ_SECONDARY,
   MONGOC_READ_NEAREST = (1 << 3) | MONGOC_READ_SECONDARY,
} mongoc_read_mode_t;

that's the whole roster β€” five members, no more, no less πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

this enum is the little icon that tells your reads how they should be dispatched ✨ like, where do you want these reads to go, bestie? it's literally the read-preference switchboard.

the default is MONGOC_READ_PRIMARY β€” that's the one you get if you don't say anything, the main character of read modes πŸ’–

and for the full lore on what Read Preferences actually mean, pls go see the MongoDB website β€” that's where the description lives. not here. this page is just the enum, and honestly? respect the minimalism 🫢

πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc β€” yeah, they made it πŸ’œ


2009-present, MongoDB, Inc. πŸ““


that's the whole page, bestie β€” short, iconic, and fully documented. now go dispatch some reads responsibly πŸ’…βœ¨

version 2.5.6, dated Oct 09, 2026 β€” mwah, see you in the next manpage πŸ“

πŸ“¦ where this page comes from