MONGOC_FIND_AN...ENT_VALIDATION(3)

🌸 MONGOC_FIND_AN...ENT_VALIDATION(3) 🌸

okay so this is a page straight out of libmongoc, bestie β€” the MongoDB C driver's own manual β€” and it's a tiny little icon, honestly. it's a getter. that's it. that's the whole vibe. ✨


✨ SYNOPSIS ✨

bool
mongoc_find_and_modify_opts_get_bypass_document_validation (
   const mongoc_find_and_modify_opts_t *opts);

like, look at her. one function, one argument, returns a bool. she's lowkey perfect. πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” a mongoc_find_and_modify_opts_t. that's the options struct you're peeking into. just hand her over and she'll tell you what's up. 🫢

πŸ’– RETURNS πŸ’–

returns true if mongoc_find_and_modify_opts_set_bypass_document_validation() was called previously on opts. πŸ¦‹

that's the whole bit, fr fr β€” it's a "did we already set this?" check, and if the setter ran on that opts before, you get true. no setter call, no true. simple as. ⭐

heads up: the important detail is was called previously on opts β€” it's checking that specific options struct, not the universe in general. iykyk πŸ’«

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the whole thing is their doing, and we respect it. πŸ’œ

2009-present, MongoDB, Inc. β€” iconic run, no cap. πŸ‘‘


and that's the page! tysm for reading, bestie, you absolutely ate that πŸ“βœ¨ β€” this was libmongoc version 2.5.6, dated Oct 09, 202… (the year got chopped off in the footer, rip πŸ˜­πŸ’€), and it's signed off with love from the libmongoc girlies. πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from