MONGOC_CLIENT...E_OPTS_SET_MAX(3)
π MONGOC_CLIENT...E_OPTS_SET_MAX(3)
okay bestie, so this one lives in the libmongoc manual (yes, that's the manual name, don't @ me) β and it's the glow-up for your range-encryption max value. let's get into it β¨
π SYNOPSIS π
void
mongoc_client_encryption_encrypt_range_opts_set_max (
mongoc_client_encryption_encrypt_range_opts_t *range_opts,
const bson_value_t *max);
New in version 1.24.0. π
So what does it do? It sets the maximum value of the range for explicit encryption. that's the whole vibe, no cap.
β οΈ Important vibe check: this only applies when the algorithm set bymongoc_client_encryption_encrypt_opts_set_algorithm()is"Range". If the algorithm is not"Range"and you set a maximum anyway? that's an error, babe. it's giving "wrong room, wrong party" π
Also, the maximum must match the value set in the encryptedFields of the destination collection. Setting a different value is, again, an error. like, the encryption gods already decided β don't fight them π«Ά
And for double and decimal128 fields: max/max/precision must all be set, or all be unset. all in or all out, no half-sending. periodt π
πΈ PARAMETERS πΈ
range_optsβ amongoc_client_encryption_encrypt_range_opts_t(your opts baddie, the main character here π)maxβ the maximumbsonvalue of the range β
π SEE ALSO π
mongoc_client_encryption_encrypt_range_opts_set_precision()mongoc_client_encryption_encrypt_range_opts_set_min()mongoc_client_encryption_encrypt_range_opts_t
iykyk, go read those next π¦
π§ AUTHOR π§
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page, bestie β slay π
β¨ this was libmongoc version 2.5.6, dated Oct 09, 2026, signing off ππ«Ά
π¦ 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