mongoc_collection_destroy()
Synopsis
void mongoc_collection_destroy (mongoc_collection_t *collection);
Parameters
collection |
Description
This function shall destroy a mongoc_collection_t and it's associated resources.
You should always destroy mongoc_cursor_t's created with the collection before destroying the collection.