MongoDB and Mongoose - Install and Set Up Mongoose help

MongoDB and Mongoose - Install and Set Up Mongoose help
0

#1

whats wrong in this code it isn’t pass the test one
“mongoose” should be connected to a database
but i connected the mangoose
here is the code of myapp.js

const mongoose = require('mongoose');
mongoose.connect(process.env.MONGO_URI);

#2

Have you set up the MONGO_URI as instructed?


#3

yeah i set the MONGO_URI in the env file and give it the link of my database


#4

thanks, for your help i find the mistakein my url and i fix it