---
name: "mongoc_read_concern_set_level"
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_read_concern_set_level"
---

# mongoc\_read\_concern\_set\_level(3)

## SYNOPSIS

```
bool
mongoc_read_concern_set_level (mongoc_read_concern_t *read_concern,
                               const char *level);
```

## PARAMETERS

- •

  **read\_concern**: A *mongoc\_read\_concern\_t*.

- •

  **level**: The readConcern level to use.

## DESCRIPTION

Sets the read concern level. See *mongoc\_read\_concern\_t* for details.

Beginning in version 1.9.0, this function can now alter the read concern after it has been used in an operation. Previously, using the struct with an operation would mark it as "frozen" and calling this function would return **false** instead of altering the read concern.

## RETURNS

Returns **true** if the read concern level was set, or **false** otherwise.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
