Provided by: libmongoc-doc_2.2.0-1_all 

SYNOPSIS
mongoc_collection_t *
mongoc_database_get_collection (mongoc_database_t *database,
const char *name);
Allocates a new mongoc_collection_t <> structure for the collection named name in database.
RETURNS
A newly allocated mongoc_collection_t <> that should be freed with mongoc_collection_destroy() <>.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.0 Nov 26, 2025 MONGOC_DATABASE_GET_COLLECTION(3)