MONGOC_CLIENT...T_RANGE_OPTS_T(3)

🌸 MONGOC_CLIENT...T_RANGE_OPTS_T(3) 🌸

okay bestie, welcome to the libmongoc manual page for this absolute icon of a struct πŸ’… she's a little truncated in the title (the real name is long, we don't judge), and she's here to make your Queryable Encryption range queries slay ✨


✨ SYNOPSIS ✨

typedef struct _mongoc_client_encryption_encrypt_range_opts_t mongoc_client_encryption_encrypt_range_opts_t;

that's it. that's the whole synopsis. a typedef and a vibe 🫢


so like… New in version 1.24.0 πŸŽ€ β€” yes she's a newer girl, respect her era.

RangeOpts specifies the index options for a Queryable Encryption field that supports "range" queries. lowkey iconic of her. she's the one you use to set options for mongoc_client_encryption_encrypt() πŸ”₯

⚠️ bestie listen to me β€” the options min, max, trim factor, sparsity, and range must match the values set in the encryptedFields of the destination collection. like, must. no cap. if they don't match, that's a whole situation πŸ’€

and for the double and decimal128 field girlies: min/max/precision must all be set, or all be unset. no in-between, no half-and-half, all or nothing periodt πŸ™ˆ


πŸ’– SEE ALSO πŸ’–

  • mongoc_client_encryption_encrypt()
  • mongoc_client_encryption_encrypt_opts_t

go read those too, iykyk πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the masterminds, the main characters, the ones who signed off on this 🌈


2009-present, MongoDB, Inc. β€” yes she's been copyrighted since 2009 and she's still thriving ⭐


okay that's the whole page, you ate that πŸ’œ mwah πŸ’‹

β€” with love, your girl libmongoc, version 2.5.6, dated Oct 09, 2026 πŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from