Fetching data issue from browser to console
I have created a page where users must enter the data and give it a path. I did this with MongoDB compass. I used this mongoose.connect("mongodb+srv://gabyjudge07:********@cluster0.nucdve3.mongodb.net/", {useNewUrlParser:true});
app.post('/posts/store', (req, res) => {
console.log(req.body)
res.redirect('/')
})
I created a collection for my application, but whenever I try to enter the data, it does not come to the console, or compass.
Is there any way to fix this error?
1
vote
Jaspreet
shared this idea
I am closing this suggestion as it's a support request that is unrelated to Compass.