MONGOC_BULKWRITEOPTS_SET_EXTRA(3)

πŸ’… MONGOC_BULKWRITEOPTS_SET_EXTRA(3) πŸ’…

ok so bestie, welcome to libmongoc β€” the C driver for MongoDB β€” and this lil page is all about mongoc_bulkwriteopts_set_extra, a function with a long name and a very specific job πŸŽ€


✨ SYNOPSIS ✨

void
mongoc_bulkwriteopts_set_extra (mongoc_bulkwriteopts_t *self, const bson_t *extra);

that's it. that's the whole signature. no return value, no drama, void and vibes πŸ’œ


🌸 DESCRIPTION 🌸

okay so here's what it does, fr fr: it appends all fields in extra to the outgoing bulkWrite command. every single field, straight onto the command, no cap πŸ’…

it's intended to support future server options β€” like, the driver peeps built this little door in the wall so that when the server gets new shiny options later, you're not stuck. iykyk πŸ¦‹

⚠️ but bestie listen β€” prefer other mongoc_bulkwriteopts_set_* helpers so you avoid unexpected option conflicts. this one is the wildcard slot; the set_* helpers are the curated ones. use the dedicated ones when they exist, ok? don't come for me if your options start beefing with each other 😭

πŸ’– AUTHOR πŸ’–

MongoDB, Inc β€” the icon, the legend, the whole organization πŸ‘‘


2009-present, MongoDB, Inc. β€” yes the copyright range is literally older than some of us and honestly, respect 🌈


and that's the whole page, no filler, no fluff 🫢 stay slay, go write a bulk write, and remember: the set_* helpers are your besties, _set_extra is the plus-one you bring only when there's no better option πŸ’œβœ¨

πŸŽ€ libmongoc version 2.5.6 Β· Oct 09, 2026 Β· Mongo gang forever πŸŽ€

πŸ“¦ where this page comes from