text: "use strict";
  exports.__esModule = true;
  var mongoose = require('mongoose');
  var logger = require('../logger').logger;
  exports["default"] = (function () {
      mongoose.connect(process.env.MONGO_DB_URI, {
          useNewUrlParser: true,
          useUnifiedTopology: true
      });
      var db = mongoose.connection;
      db.on('error', function (error) {
          logger.error(error);
      });
      db.once('open', function () {
          logger.info('Connected to MongoDB!');
      });
      return db;
  });
  //# sourceMappingURL=Mongo.js.map