MONGOC_AUTO_E...QUERY_ANALYSIS(3)

mongoc_auto_encryption_opts_set_bypass_query_analysis πŸ’…

okay bestie, so this one lives in libmongoc (yes, the C driver, we love her) and it's literally the function that lets you tell auto-encryption to chill and stop analyzing your outgoing commands. no cap.


✨ SYNOPSIS ✨

void
mongoc_auto_encryption_opts_set_bypass_query_analysis (
   mongoc_auto_encryption_opts_t *opts, bool bypass_query_analysis);

πŸ†• New in version 1.22.0. periodt.


πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” the mongoc_auto_encryption_opts_t πŸ’– like, the actual options object you're poking at.
  • bypass_query_analysis β€” a bool. yes bestie, just true or false, that's the whole vibe 🌸

πŸ¦‹ the tea on bypass_query_analysis πŸ¦‹

so bypass_query_analysis disables automatic analysis of outgoing commands. that's it, that's the function.

and here's why you'd want that: it's genuinely useful for encrypting indexed fields when you don't have the crypt_shared library or a mongocryptd process hanging around. no helper daemons? no problem, she still ate πŸ’…

set bypass_query_analysis to true whenever you wanna use explicit encryption on indexed fields. that's the move. that's the main character energy ✨


πŸ‘€ SEE ALSO

  • mongoc_client_enable_auto_encryption()
  • In-Use Encryption πŸ”₯

πŸ‘‘ AUTHOR

MongoDB, Inc β€” icons only, fr fr 🫢


2009-present, MongoDB, Inc. β€” like, a whole era of copyright, we love that for them πŸŽ€


⭐ lowkey reminder: every flag and default up there is exactly as written, no cap. go forth and encrypt those indexed fields, bestie πŸ˜­πŸ’–

signing off from libmongoc 2.5.6, dated Oct 09, 2026 β€” catch you in the next manpage, mwah πŸ’‹

πŸ“¦ where this page comes from