// NewMongoDB creates new connection to postgres db with official mongo driver
NewMongoDB creates new connection to postgres db with official mongo driver
// NewMongoDB creates new connection to postgres db with official mongo driver
func NewMongoDB(dbConnectionString string, maxConnectionsInPool int) (DB, error) {
	var m Mongo
	if err := m.Connect(dbConnectionString, maxConnectionsInPool); err != nil {
		return nil, err
	}
	return &m, nil
}
func NewMongoDB ( dbConnectionString string , maxConnectionsInPool int ) ( DB , error ) { var m Mongo if err := m . Connect ( dbConnectionString , maxConnectionsInPool ) ; err != nil { return nil , err } return & m , nil }
NewMongoDB creates new connection to postgres db with official mongo driver
NewMongoDB creates new connection to postgres db with official mongo driver