---
name: "mongoc_write_concern_is_default"
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_write_concern_is_default"
---

# mongoc\_write\_concern\_is\_default(3)

## SYNOPSIS

```
bool
mongoc_write_concern_is_default (mongoc_write_concern_t *write_concern);
```

## PARAMETERS

- •

  **write\_concern**: A pointer to a *mongoc\_write\_concern\_t*.

## DESCRIPTION

Returns true if **write\_concern** has not been modified from the default. For example, if no "w" option is set in the MongoDB URI and you have not called *mongoc\_client\_set\_write\_concern()*, then *mongoc\_write\_concern\_is\_default()* is true for the write concern returned by *mongoc\_client\_get\_write\_concern()*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
