MongoDB - mongoose not connected :(

Tell us what’s happening:

“mongoose” should be connected to a database

How to fix / debug?

Your code so far
const mongoose = require(‘mongoose’);
mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true });

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36.

Challenge: undefined

Link to the challenge:

What does your .env file look like?

Its easy to make a slight mistake in there.

yeah, thanks - just found it - paste error in my URI. :frowning: