MONGOC_REMOVE_FLAGS_T(3)

πŸ’… MONGOC_REMOVE_FLAGS_T(3) β€” flags for deletion operations ✨

okay bestie so this is from libmongoc, and it's literally just the little enum that tells a remove command how many docs you're yeeting. it's giving "small but mighty". let's get into it 🫢


✨ SYNOPSIS ✨

typedef enum {
   MONGOC_REMOVE_NONE = 0,
   MONGOC_REMOVE_SINGLE_REMOVE = 1 << 0,
} mongoc_remove_flags_t;

πŸ¦‹ DESCRIPTION πŸ¦‹

so these flags are literally the MongoDB wire protocol, no cap. you can bitwise or them together (yes, or them, they're flags, that's the whole vibe πŸ’…).

and heads up: they may change the number of documents that are removed during a remove command. so like, don't just slap them on and forget, okay? πŸ‘€


πŸŽ€ FLAG VALUES πŸŽ€

  • MONGOC_REMOVE_NONE β€” specify no removal flags. all matching documents will be removed. (yeah. all of them. main character energy, careful πŸ”₯)
  • MONGOC_REMOVE_SINGLE_REMOVE β€” only remove the first matching document from the selector. just the one. one single lil guy πŸ“

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” icons fr fr


2009-present, MongoDB, Inc.


and that's the whole page, bestie, you ate πŸ’– sign-off time: this was libmongoc version 2.5.6, dated Oct 09, 2026 β€” go forth and delete responsibly βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from