Hi im developing nodejs express app. I am getting exception and dont know why. Everything seem to perfect for me.
Can't get property '_id' and 'title' or 'imageUrl' in Express help me out...
CodePudding user response:
Add this in app.js
(server.js)
or your root file of the app
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
It parse your request and you get all values...