MONGOC_FIND_AN...PTS_GET_FIELDS(3)

πŸ’… mongoc_find_and_modify_opts_get_fields

okay bestie, welcome to the libmongoc manual page for mongoc_find_and_modify_opts_get_fields β€” yes, the name is long, but she's iconic and she knows it. ✨

🌸 SYNOPSIS

void
mongoc_find_and_modify_opts_get_fields (
   const mongoc_find_and_modify_opts_t *opts, bson_t *fields);

πŸŽ€ PARAMETERS

  • opts: A mongoc_find_and_modify_opts_t.
  • fields: An uninitialized bson_t.

πŸ¦‹ DESCRIPTION

This one is lowkey a little copy-paste fairy: it copies into fields the BSON document that was set with mongoc_find_and_modify_opts_set_fields(). 🫢

Or β€” plot twist β€” it initializes fields with an empty BSON document. Both paths are right there in the description, no cap. πŸ’–

πŸ’œ AUTHOR

MongoDB, Inc β€” credit where it's due, periodt. πŸ‘‘

2009-present, MongoDB, Inc. β€” yup, that's the copyright line, and we're keeping it exactly as it is. πŸŽ€


that's the whole page, bestie 🫢 β€” from libmongoc version 2.5.6, footer date Oct 09, 202 (the terminal clipped the rest, not me πŸ’€). bye, love u, read ur docs πŸ’–βœ¨

πŸ“¦ where this page comes from