Something went wrong. Try again.
An Android app for exploring the marine life, featuring local names, detailed profiles, and easy search. One-stop-shop for researchers, hob…
Something went wrong. Try again.
1234567891011121314151617181920
const mongoose = require('mongoose');
module.exports = {
connect: () => { mongoose.connect(process.env.MONGO_URL) .then(() => { console.log("--- Connected to MongoDB Atlas\n"); }).catch((error) => { console.log(error); }); },
collection: (name) => { return mongoose.connection.db.collection(name); }
};