---
name: "mongoc_topology_description_type"
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_topology_description_type"
---

# mongoc\_topology\_description\_type(3)

## SYNOPSIS

```
const char *
mongoc_topology_description_type (const mongoc_topology_description_t *td);
```

## PARAMETERS

- •

  **td**: A *mongoc\_topology\_description\_t*.

## DESCRIPTION

This function returns a string, one of the topology types defined in the Server Discovery And Monitoring Spec:

- •

  Unknown

- •

  Single

- •

  Sharded

- •

  ReplicaSetNoPrimary

- •

  ReplicaSetWithPrimary

- •

  LoadBalanced

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
