---
name: "mongoc_transaction_opts_new"
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_transaction_opts_new"
---

# mongoc\_transaction\_opts\_new(3)

## SYNOPSIS

```
mongoc_transaction_opt_t *
mongoc_transaction_opts_new (void);
```

Create a *mongoc\_transaction\_opt\_t* to configure multi-document transactions.

## RETURNS

A new *mongoc\_transaction\_opt\_t* that must be freed with *mongoc\_transaction\_opts\_destroy()*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
