---
name: "mongoc_bulkwriteopts_set_writeconcern"
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_bulkwriteopts_set_writeconcern"
---

# mongoc\_bulkwriteopts\_set\_writeconcern(3)

## SYNOPSIS

```
void
mongoc_bulkwriteopts_set_writeconcern (mongoc_bulkwriteopts_t *self, const mongoc_write_concern_t *writeconcern);
```

## DESCRIPTION

**writeconcern** is the write concern to use for this bulk write. If a write concern is not set, defaults to the write concern set on the *mongoc\_client\_t* passed in *mongoc\_client\_bulkwrite\_new()*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
