Node.js-Expess-MongoDB-CRUD
Node.js-Expess-MongoDB-CRUD copied to clipboard
list is not showing
you can see the erreor using the given link
https://drive.google.com/file/d/1PIZ7SOKyVm0IQEZGuRA4038ntpciMHSh/view?usp=sharing
https://drive.google.com/file/d/1PIZ7SOKyVm0IQEZGuRA4038ntpciMHSh/view?usp=sharing
I also have the same problem. For any solution for that problem
In list data not showing but only showing the edit and delete only
Resolved this issue in #7 pull request
Look good
To fix the list not showing, add .lean() to your code as below
router.get('/list', (req, res) => { Employee.find((err, docs) => { if (!err) { res.render("employee/list", { list: docs, }); } else { console.log('Error in retrieving employee list :' + err); } }) .lean() // It is prevent the warning when trying to display records })
Showing lean is not defined...how to fix this?
Please help me with the error, its not showing any data which i have entered. Its getting saved in the database but not in the list. i ll share my code please help me. project.zip