MONGOC_BULKWRI...T_ARRAYFILTERS(3)

🌸 MONGOC_BULKWRITE_UPDATEMANYOPTS_SET_ARRAYFILTERS πŸ’…

okay bestie, welcome to the libmongoc manual, this one's about a function name so long it needs its own zip code 😭 the header up top truncates it to MONGOC_BULKWRI...T_ARRAYFILTERS(3) but you and me? we're gonna say the whole thing. periodt.


✨ SYNOPSIS ✨

void
mongoc_bulkwrite_updatemanyopts_set_arrayfilters (mongoc_bulkwrite_updatemanyopts_t *self, const bson_t *arrayfilters);

that's it. that's the whole vibe check. it returns void β€” no return value, no drama, she just does the thing 🫢


πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the tea: this function sets a set of filters specifying to which array elements an update should apply. πŸ¦‹

that's literally the whole description, no cap. so if you've got a mongoc_bulkwrite_updatemanyopts_t * (that's self, your main character πŸŽ€) and a bson_t * of filters (that's arrayfilters, the supporting cast ✨), you hand them over and she sets them. done. iconic.

let's break the two of them down so nobody gets lost:

  • self β€” a mongoc_bulkwrite_updatemanyopts_t *, aka the update-many options object you're decorating πŸ’…
  • arrayfilters β€” a const bson_t *, the set of filters saying which array elements the update applies to πŸ‘‘
ngl, the manpage gives us exactly one sentence of lore here, so we're not gonna invent backstory. what you see is what you get, fr fr πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc πŸ’œ


2009-present, MongoDB, Inc. 🫢


and that's a wrap, bestie! this page came from libmongoc version 2.5.6, dated Oct 09, 202... (the year got ate by the footer, we love a mysterious queen πŸ’€βœ¨). slay, go set some array filters πŸ’–

πŸ“¦ where this page comes from