app.get('/list', function(요청, 응답) {
db.collection('post').find().toArray(function(에러, 결과){
응답.render('list.ejs', { posts : 결과 }) //{ _id: 13, '제목': '알하기 쉬기', '날짜': '111' } 이런 많은 데이터를 posts로 list.ejs로 보냄
});
});
처럼 login 콜렉션안에 있는 데이터들을 list.ejs 로 보내보고 싶은데 어떻게 해야할까요?