DOKK / manpages / debian 10 / libmongoc-doc / mongoc_topology_description_type.3.en
MONGOC_TOPOLOGY_DESCRIPTION_TYPE(3) MongoDB C Driver MONGOC_TOPOLOGY_DESCRIPTION_TYPE(3)

mongoc_topology_description_type - mongoc_topology_description_type()

const char *
mongoc_topology_description_type (const mongoc_topology_description_t *td);


td: A mongoc_topology_description_t.

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

  • Unknown
  • Single
  • Sharded
  • ReplicaSetNoPrimary
  • ReplicaSetWithPrimary

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0