Created
September 19, 2018 15:18
-
-
Save AntonioErdeljac/35ab15a5dcea490227d63f426bba68bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose'); | |
const config = require('../config'); | |
mongoose.Promise = Promise; | |
mongoose.connect(config.mongo.uri, { useNewUrlParser: true }); | |
module.exports = mongoose; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment