how can you show the data shown in mongodb?

If docs supposed to be a result of Employee.find() then you didn’t indicated it as a parameter for an arrow function passed to then. Another issue is ‘)’ in wrong place.

.then(docs => res.render('employee/list' , {
    viewTitle: 'List Employee!!',
.catch(err => {
    console.log('Error Show List' + err)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top