MONGOC_BULK_OPERATION_SET_LET(3)

πŸ’… mongoc_bulk_operation_set_let πŸ’…

okay bestie, welcome to the libmongoc manual, this one's all about mongoc_bulk_operation_set_let β€” yes it's a long name, no we're not shortening it, it's iconic like that ✨


✨ SYNOPSIS ✨

void
mongoc_bulk_operation_set_let (
   mongoc_bulk_operation_t *bulk, const bson_t *let);

that's it. that's the whole vibe check. a void function, two args, no return value, she just does her thing πŸŽ€


🌸 PARAMETERS 🌸

  • bulk β€” a mongoc_bulk_operation_t. literally the bulk operation you're setting stuff on, bestie, she's the main character here πŸ‘‘
  • let β€” a BSON document consisting of any number of parameter names, each followed by definitions of constants in the MQL Aggregate Expression language. so yes, it's giving "dictionary of little constants" energy β€” however many names you want, each one paired with its definition, all in that MQL Aggregate Expression language πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea: this function defines constants that can be accessed by all update, replace, and delete operations executed as part of this bulk. every single one of them. no cap, the whole squad gets access πŸ”₯

⚠️ and now the important part, listen up: it is prohibited to call this function after adding operations to the bulk. like, do not. do it first, then add your ops. the way that order actually matters here 😭

🫢 AUTHOR 🫢

MongoDB, Inc β€” yes, the whole company. they said "we got this one" πŸ’–


2009-present, MongoDB, Inc. β€” protecting the brand since before some of us could read, periodt πŸ’…


alright bestie, that's the page! version 2.5.6, dated Oct 09, 2026, fresh out of the libmongoc manual β€” go forth and set your let before you add operations, mwah πŸ“βœ¨

πŸ“¦ where this page comes from