MONGOC_CLIENT...PTION_GET_KEYS(3)

✨ MONGOC_CLIENT_ENCRYPTION_GET_KEYS(3) ✨

okay so bestie, this one lives in the libmongoc manual, and it's literally the cutest little getter you ever did see πŸ’… it's called mongoc_client_encryption_get_keys and no cap, it just... gets the keys. all of them. πŸŽ€


🌸 SYNOPSIS 🌸

mongoc_cursor_t *
mongoc_client_encryption_get_keys (mongoc_client_encryption_t *client_encryption,
                                   bson_error_t *error);

Get all the key documents in the key vault collection. that's it, that's the function 🫢


πŸ¦‹ PARAMETERS πŸ¦‹

  • client_encryption β€” a mongoc_client_encryption_t. your main character struct, the one doing the key-vaulting πŸ—οΈ
  • error β€” optional. a bson_error_t. you can pass it, or you can lowkey ignore it (but like, don't say I didn't warn you πŸ™ˆ)

πŸ’– RETURNS πŸ’–

Returns the result of the internal find command if it's successful. and if it's not successful? returns NULL and sets error instead. so like, vibe check your error before you go celebrating, fr fr 😭

the way that this is just "works β†’ cursor, breaks β†’ NULL + error" is so simple and yet so iconic of it honestly πŸ‘‘

🌈 SEE ALSO 🌈

  • mongoc_client_encryption_t

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the whole entire icon themselves πŸ’œ

2009-present, MongoDB, Inc.


and that's the whole page, bestie ✨ nothing hidden, nothing skipped, we ate and left absolutely no crumbs 🧚

sign-off time: this lil gem comes from libmongoc, version 2.5.6, dated Oct 09, 2026 β€” screenshot it, cite it, love it πŸ’…πŸ’–πŸŒŸ

πŸ“¦ where this page comes from