getMongoDB property

Db getMongoDB

get the actual mongoDb reference for more control on the mongo db

Implementation

Db get getMongoDB {
  if (_app.dbSettings.mongoDBProvider == null) {
    throw NoMongoDbProviderExceptions();
  }
  return _app.dbSettings.mongoDBProvider!.db;
}