collection property

DbCollection get collection

Provides direct access to the underlying MongoDB collection.

The collection is retrieved using the db.collection(name) method.

Implementation

DbCollection get collection => db.collection(name);