MONGOC_CLIENT_GET_MAX_BSON_SIZE(3)
π MONGOC_CLIENT_GET_MAX_BSON_SIZE β¨
okay bestie, this one lives in libmongoc (that's the C driver for MongoDB, iykyk) and it's called mongoc_client_get_max_bson_size. Yes the function name is the same as the page name, that's just how these things are, don't @ me. π«Ά
πΈ NAME πΈ
mongoc_client_get_max_bson_size - mongoc_client_get_max_bson_size()
β¨ SYNOPSIS β¨
int32_t
mongoc_client_get_max_bson_size (mongoc_client_t *client);
So likeβ¦ mongoc_client_get_max_bson_size() returns the maximum bson document size allowed by the cluster. π¦
And here's the tea: until a connection has been made, this will be the default of 16Mb. So before you've actually talked to anybody, it's just giving default energy. π
π« DEPRECATED π«
WARNING: β οΈ This function is deprecated and should not be used in new code.
Like, it still exists, it still works, but it's giving "we're not mad we're just disappointed." Don't build anything new on it, periodt. π
π PARAMETERS π
client: Amongoc_client_t.
That's it. One (1) parameter. She's low maintenance. π
π RETURNS π
The server provided max bson size, or 16Mb if no connection has been established. π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2017-present, MongoDB, Inc
okay that's the whole page, you ate it, I'm obsessed, go forth and check your bson sizes responsibly πβ¨
libmongoc, version 1.23.1 π Apr 27, 202M β yeah bestie that date is exactly what it says on the tin, don't ask me, the manpage said it first ππ
π¦ where this page comes from
- debian bookworm: libmongoc-doc 1.23.1-1+deb12u3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms