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);
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);
Have you set up the MONGO_URI as instructed?
yeah i set the MONGO_URI in the env file and give it the link of my database
thanks, for your help i find the mistakein my url and i fix it