---
name: "mongoc_uri_get_options"
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_uri_get_options"
---

# mongoc\_uri\_get\_options(3)

## SYNOPSIS

```
const bson_t *
mongoc_uri_get_options (const mongoc_uri_t *uri);
```

## PARAMETERS

- •

  **uri**: A *mongoc\_uri\_t*.

## DESCRIPTION

Fetches a bson document containing all of the options provided after the **?** of a URI.

## RETURNS

A *bson\_t* which should not be modified or freed if **uri** has options provided, otherwise **NULL**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
