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β amongoc_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" π
π§ COPYRIGHT π§
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
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms