---
name: "mongoc_bulkwrite_append_insertone"
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_bulkwrite_append_insertone"
---

# mongoc\_bulkwrite\_append\_insertone(3)

## SYNOPSIS

```
bool
mongoc_bulkwrite_append_insertone (mongoc_bulkwrite_t *self,
                                   const char *ns,
                                   const bson_t *document,
                                   const mongoc_bulkwrite_insertoneopts_t *opts /* May be NULL */,
                                   bson_error_t *error);
```

## DESCRIPTION

Adds a document to insert into the namespace **ns**. Returns true on success. Returns false and sets **error** if an error occured.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
