Mongoose & MONGO_URI

Please nudge me in the correct direction. I just cannot see it. Please help

const mongoose = require(‘mongoose’);

mongoose.connect(process.env.MONGO_URI, {useNewUrlParser: true, useUnifiedTopology: true})

Keeps failing one

// running tests
“mongoose” should be connected to a database
// tests completed

Nevermind I got it eventually

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.