---
name: "mongoc_insert_flags_t"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_insert_flags_t"
---

# mongoc\_insert\_flags\_t(3)

Flags for insert operations

## SYNOPSIS

```
typedef enum {
   MONGOC_INSERT_NONE = 0,
   MONGOC_INSERT_CONTINUE_ON_ERROR = 1 << 0,
} mongoc_insert_flags_t;
#define MONGOC_INSERT_NO_VALIDATE (1U << 31)
```

## DESCRIPTION

These flags correspond to the MongoDB wire protocol. They may be bitwise or'd together. They may modify how an insert happens on the MongoDB server.

## FLAG VALUES

| | |
| --- | --- |
| MONGOC\_INSERT\_NONE | Specify no insert flags. |
| MONGOC\_INSERT\_CONTINUE\_ON\_ERROR | Continue inserting documents from the insertion set even if one insert fails. |
| MONGOC\_INSERT\_NO\_VALIDATE | Do not validate insertion documents before performing an insert. Validation can be expensive, so this can save some time if you know your documents are already valid. |

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
