MONGOC_CLIENT...E_OPTS_SET_MIN(3)

πŸ’… MONGOC_CLIENT...E_OPTS_SET_MIN(3) πŸ’…

okay so bestie, welcome to the libmongoc corner of the universe β€” this one's a lil function that sets the minimum value on a range-encryption options struct, and honestly? it's giving "small but mighty" ✨


🌸 SYNOPSIS 🌸

void
mongoc_client_encryption_encrypt_range_opts_set_min (
     mongoc_client_encryption_encrypt_range_opts_t *range_opts,
     const bson_value_t *min);
New in version 1.24.0. πŸŽ€ (yes, she's got a birthday, note it down)

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this is the function that sets the minimum value of the range for explicit encryption. that's the whole vibe 🫢

lowkey important: it only applies when the algorithm set by mongoc_client_encryption_encrypt_opts_set_algorithm() is "Range". and listen β€” it is literally an error to set minimum when the algorithm is not "Range". not a vibe, not a warning, an error πŸ’€

also, the minimum must match the value set in the encryptedFields of the destination collection. setting a different value? that's an error too. no cap, the math has to math πŸ”₯

and for double and decimal128 fields, min/max/precision must all be set, or all be unset. it's all of them or none of them, bestie β€” no in-between situationship energy πŸ™ˆ


πŸ‘‘ PARAMETERS πŸ‘‘

  • range_opts β€” a mongoc_client_encryption_encrypt_range_opts_t πŸ’– (the lil options struct you're decorating)
  • min β€” the minimum bson value of the range. that's the whole point πŸŽ€

⭐ SEE ALSO ⭐

like, go read these too, iykyk πŸ‘€

  • mongoc_client_encryption_encrypt_range_opts_set_precision()
  • mongoc_client_encryption_encrypt_range_opts_set_max()
  • mongoc_client_encryption_encrypt_range_opts_t

🧚 AUTHOR 🧚

MongoDB, Inc β€” iconic, we stan 🫢

2009-present, MongoDB, Inc. πŸ’œ


okay that's the whole page, periodt πŸ’… version 2.5.6, dated Oct 09, 2026 β€” go forth and set those minimums correctly, bestie πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from