MONGOC_MATCHER_NEW(3)
π MONGOC_MATCHER_NEW π
okay bestie, welcome to the libmongoc corner of the man pages, section 3, and today's main character is mongoc_matcher_new. she's giving matcher energy. she's also, unfortunately, giving deprecated energy, but we'll get to that. π
β¨ NAME β¨
mongoc_matcher_new β literally just mongoc_matcher_new(), that's her whole name, no notes π
πΈ SYNOPSIS πΈ
mongoc_matcher_t *
mongoc_matcher_new (const bson_t *query, bson_error_t *error)
BSON_GNUC_WARN_UNUSED_RESULT BSON_GNUC_DEPRECATED;
so what she does is create a brand new mongoc_matcher_t using the query specification you hand her. that's the vibe. β¨
π DEPRECATED π
WARNING: mongoc_matcher_t is deprecated and will be removed in version 2.0.
not me having to break the news π bestie she's deprecated. she is being removed in version 2.0. so like, use her if you must, but know she's on her way out the door. gone but not forgotten fr fr π«Ά
π¦ PARAMETERS π¦
queryβ abson_t. yes, that's the whole description. she's abson_t. slay.errorβ an optional spot to put abson_error_t, or you can just passNULLif you're feeling chaotic π
π ERRORS π
any errors get propagated via the error parameter. so if you passed her a real place to land, that's where the drama shows up. β¨
π RETURNS π
she hands you back a freshly allocated mongoc_matcher_t β and bestie, please free her with mongoc_matcher_destroy() when you're done, she deserves that. π
but if things go wrong? you get NULL back and error gets set. this can happen if query contains an invalid query specification. so like, garbage in, NULL out, iykyk π
π AUTHOR π
MongoDB, Inc β iconic, we stan π«Ά
πΈ COPYRIGHT πΈ
2017-present, MongoDB, Inc
okay that's the whole page, no cap. this was MONGOC_MATCHER_NEW(3) from libmongoc, version 1.23.1, dated Apr 27, 2026. love her, use her while she's here, and remember: deprecated doesn't mean forgotten. periodt. πβ¨π
π¦ 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