I am trying to export datas from mongodb and even i add the attribute of my data, i can not receive what i want. I am just a rookie and i couldn’t find the solution on web
<%newListItems.forEach(function(item){ %>
<div class="item">
<input type="checkbox">
<p> <%= item.name %> </p>
</div>
<% }) %>
this is my code and “.name” part is not working. how can i figure it out? thanks.