MONGOC_BULKWRI...ECONCERNERRORS(3)
π MONGOC_BULKWRITEEXCEPTION_WRITECONCERNERRORS π
okay bestie, buckle up π you're in libmongoc land, and this page is all about one very specific little function: mongoc_bulkwriteexception_writeconcernerrors. she's the one who tells you what the server side was mad about when your write concern settings weren't it. no cap.
β¨ SYNOPSIS β¨
const bson_t *
mongoc_bulkwriteexception_writeconcernerrors (const mongoc_bulkwriteexception_t *self);
that's it. one function, one arg, one const bson_t * coming back at you π«Ά
π¦ DESCRIPTION π¦
she returns a BSON array of write concern errors. full stop. that array is the vibe check for "did the server side accept my write concern or not" π
like, here's what that array looks like in the wild:
[
{ "code" : 123, "message" : "foo", "details" : { } },
{ "code" : 456, "message" : "bar", "details" : { } }
]
see the pattern? each entry has a code, a message, and a details doc (sometimes empty, and that's fine, she's allowed to be lowkey shy π).
and here's the important part, so don't skip it: if there are no write concern errors, you get back an empty array. not a NULL, not a maybe, an empty array. the way that a clean empty array is literally the most reassuring thing you'll see all day β¨
π AUTHOR π
MongoDB, Inc β icons only, periodt.
π COPYRIGHT π
2009-present, MongoDB, Inc. β yes she's been thriving since 2009, main character energy fr fr.
ok that's the whole page, no hidden bonus sections, no secret flags, nothing lurking. what you see is what you get π
libmongoc version 2.5.6, dated Oct 09, 2025 β mwah, love you, bye π ππ¦π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms