Skip to content

Instantly share code, notes, and snippets.

View Sanjay007's full-sized avatar
🎯
Focusing

Sanjay Y Sanjay007

🎯
Focusing
View GitHub Profile
const mongoose = require("mongoose");
const DB_URL = process.env.MONGO_URI;
module.exports = () => {
const connect = () => {
mongoose.Promise = global.Promise;
mongoose.connect(
DB_URL,
{
keepAlive: true,