---
name: "mongoc_bulkwritereturn_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_bulkwritereturn_t"
---

# mongoc\_bulkwritereturn\_t(3)

## SYNOPSIS

```
typedef struct {
  mongoc_bulkwriteresult_t *res;    // NULL if no known successful writes or write was unacknowledged.
  mongoc_bulkwriteexception_t *exc; // NULL if no error.
} mongoc_bulkwritereturn_t;
```

## DESCRIPTION

*mongoc\_bulkwritereturn\_t* is returned by *mongoc\_bulkwrite\_execute()*.

**res** or **exc** may outlive the *mongoc\_bulkwrite\_t* that was executed.

**res** is NULL if the *mongoc\_bulkwrite\_t* has no known successful writes or was executed with an unacknowledged write concern.

**res** must be freed with *mongoc\_bulkwriteresult\_destroy()*.

**exc** is NULL if no error occurred.

**exc** must be freed with *mongoc\_bulkwriteexception\_destroy()*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
