MongoConfig constructor
MongoConfig({})
Implementation
MongoConfig({
this.host,
this.hosts,
this.replica,
required this.database,
this.user,
this.password,
this.secure = false,
}) {
if (replica != null && hosts == null) throw Exception('Using MongoDB replica requires host list to be set');
if (replica == null && host == null) throw Exception('MongoDB host parameter is not set');
}