MONGOC_BULKWR...PEND_DELETEONE(3)

bestie, welcome to the MONGOC_BULKWR...PEND_DELETEONE(3) page from the libmongoc manual πŸ’–βœ¨ this is the little function that adds one single-document delete into a namespace, and we're gonna cover every detail, no skips, no cap.

✨ SYNOPSIS ✨

          bool
          mongoc_bulkwrite_append_deleteone (mongoc_bulkwrite_t *self,
                                             const char *ns,
                                             const bson_t *filter,
                                             const mongoc_bulkwrite_deleteoneopts_t *opts /* May be NULL */,
                                             bson_error_t *error);

πŸ’… DESCRIPTION πŸ’…

okay so here's the vibe: mongoc_bulkwrite_append_deleteone adds a single-document delete into the namespace ns. That's the main-character move. πŸ—‘οΈβœ¨

The parameters are right there in the signature:

  • self β€” a mongoc_bulkwrite_t *.
  • ns β€” the namespace, a const char *.
  • filter β€” a const bson_t *.
  • opts β€” a const mongoc_bulkwrite_deleteoneopts_t *, and the signature literally says /* May be NULL */, so yes bestie, NULL is allowed there 🫢.
  • error β€” a bson_error_t *.

Return-value tea β˜•:

  • Returns true β€” on success. Slay, we love to see it πŸ’–.
  • Returns false β€” and sets error if an error occurred. Not the vibe, but at least the error gets filled in 😭.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” iconic, periodt πŸ’œ.

2009-present, MongoDB, Inc. β€” yes ma'am, that's the copyright line 🌸.


and that's the whole page, bestie πŸ’… this one came from the libmongoc manual, version 2.5.6, dated Oct 09, 2026 β€” mwah, go forth and append that delete 🌈✨

πŸ“¦ where this page comes from