---
name: "mongoc_collection_get_name"
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_collection_get_name"
---

# mongoc\_collection\_get\_name(3)

## SYNOPSIS

```
const char *
mongoc_collection_get_name (mongoc_collection_t *collection);
```

## PARAMETERS

- •

  **collection**: A *mongoc\_collection\_t*.

## DESCRIPTION

Fetches the name of **collection**.

## RETURNS

A string which should not be modified or freed.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
